public function __construct(KernelInterface $kernel) { parent::__construct($kernel); // set selected ids $this->setSelectedPageIds(); }