__construct() public method

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $action, string $module )
$kernel Symfony\Component\HttpKernel\KernelInterface
$action string The action to use.
$module string The module to use.
Ejemplo n.º 1
0
 /**
  * @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();
 }