/** * This method exists because the service container needs to be set before * the page's functionality gets loaded. */ public function initialize() { $url = new Url($this->getKernel()); new TwigTemplate(); new Navigation($this->getKernel()); new Header($this->getKernel()); $this->action = new Action($this->getKernel()); $this->action->setModule($url->getModule()); $this->action->setAction($url->getAction()); }