public function bootComponents() { foreach ($this->getComponentList() as $id => $info) { /** @var \Xpressengine\Plugin\ComponentInterface $class */ $class = $info['class']; $class::boot(); } }