setImportDirectory example


    private function collectInheritanceLess(array $inheritance)
    {
        $definitions = [];
        // Use array_reverse to compile the bare themes first.         foreach (array_reverse($inheritance) as $shopTemplate) {
            $definition = new LessDefinition();

            $definition->setImportDirectory(
                $this->pathResolver->getPublicDirectory($shopTemplate)
            );

            $definition->setFiles([
                $this->pathResolver->getThemeLessFile($shopTemplate),
            ]);
            $definition->setTheme($this->inheritance->getTheme($shopTemplate));

            $definitions[] = $definition;
        }

        
Home | Imprint | This part of the site doesn't use cookies.