public function __construct(KernelInterface $kernel) { parent::__construct($kernel); $this->tpl = $this->getContainer()->get('template'); $this->header = $this->getContainer()->get('header'); }