Frontend\Core\Engine\Base\Widget::__construct PHP Method

__construct() public method

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module, string $action, string $data = null )
$kernel Symfony\Component\HttpKernel\KernelInterface
$module string The module to use.
$action string The action to use.
$data string The data that should be available.
    public function __construct(KernelInterface $kernel, $module, $action, $data = null)
    {
        parent::__construct($kernel);
        // get objects from the reference so they are accessible
        $this->header = $this->getContainer()->get('header');
        $this->URL = $this->getContainer()->get('url');
        // set properties
        $this->setModule($module);
        $this->setAction($action);
        $this->setData($data);
    }