/** * Initializes the entire frontend; preload FB, URL, template and the requested page. * * This method exists because the service container needs to be set before * the page's functionality gets loaded. */ public function initialize() { new Url($this->getKernel()); // Load the rest of the page. $this->page = new Page($this->getKernel()); $this->page->load(); }