public function __construct(KernelInterface $kernel) { parent::__construct($kernel); $this->getContainer()->set('footer', $this); }