Frontend\Core\Engine\Header::__construct PHP Method

__construct() public method

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
$kernel Symfony\Component\HttpKernel\KernelInterface
    public function __construct(KernelInterface $kernel)
    {
        parent::__construct($kernel);
        $this->getContainer()->set('header', $this);
        // add some default CSS files
        $this->addCSS('/src/Frontend/Core/Layout/Css/screen.css');
        // debug stylesheet
        if ($this->getContainer()->getParameter('kernel.debug')) {
            $this->addCSS('/src/Frontend/Core/Layout/Css/debug.css');
        }
        // add default javascript-files
        $this->addJS('/src/Frontend/Core/Js/jquery/jquery.js', false, null, self::PRIORITY_GROUP_GLOBAL);
        $this->addJS('/src/Frontend/Core/Js/jquery/jquery.frontend.js', true, null, self::PRIORITY_GROUP_GLOBAL);
        $this->addJS('/src/Frontend/Core/Js/utils.js', true, null, self::PRIORITY_GROUP_GLOBAL);
        $this->addJS('/src/Frontend/Core/Js/frontend.js', false, null, self::PRIORITY_GROUP_GLOBAL);
    }