public function __construct(KernelInterface $kernel)
{
parent::__construct($kernel);
// get objects from the reference so they are accessible from the action-object
$this->tpl = $this->getContainer()->get('template');
$this->URL = $this->getContainer()->get('url');
$this->header = $this->getContainer()->get('header');
// store the current module and action (we grab them from the URL)
$this->setModule($this->URL->getModule());
$this->setAction($this->URL->getAction());
// populate the parameter array
$this->parameters = $this->get('request')->query->all();
}