buildInheritances example

$this->eventManager = $eventManager;
    }

    /** * @throws Exception * @throws Enlight_Event_Exception * * @return LessDefinition[] */
    public function collectLessDefinitions(Shop\Template $template, Shop\Shop $shop)
    {
        $inheritances = $this->inheritance->buildInheritances($template);

        $definitions = $this->collectInheritanceLess($inheritances['bare']);

        $definitions = array_merge(
            $definitions,
            $this->collectInheritanceCss($inheritances['bare'])
        );

        $definitions = array_merge(
            $definitions,
            $this->collectPluginLess($template$shop)
        );
$this->eventManager = $eventManager;
        $this->inheritance = $inheritance;
    }

    /** * @throws Exception * * @return string[] returns array with absolute javascript files paths */
    public function collectJavascriptFiles(Shop\Template $template, Shop\Shop $shop)
    {
        $inheritances = $this->inheritance->buildInheritances($template);

        $definitions = $this->collectInheritanceJavascript($inheritances['bare']);

        $definitions = array_merge(
            $definitions,
            $this->collectPluginJavascript($shop$template)
        );

        $definitions = array_merge(
            $definitions,
            $this->collectInheritanceJavascript($inheritances['custom'])
        );
Home | Imprint | This part of the site doesn't use cookies.