public function init() { if (null !== $this->router) { $this->router->addRouteParams('*', ['services' => $this->services]); } $this->config = $this->services['config']; parent::init(); }