public function __construct(KernelInterface $kernel, $action, $module) { parent::__construct($kernel); // store the current module and action (we grab them from the URL) $this->setModule($module); $this->setAction($action); }
/** * @param KernelInterface $kernel * @param string $action The action that should be executed. * @param string $module The module that wherein the action is available. */ public function __construct(KernelInterface $kernel, $action, $module) { parent::__construct($kernel, $action, $module); // set properties $this->setModule($module); $this->setAction($action); // load the config file for the required module $this->loadConfig(); }