getThemeDirectory example

$this->pluginDirectories = $pluginDirectories;
        $this->templateDir = $templateDir;
        $this->cacheDir = $cacheDir;
        $this->release = $release;
    }

    /** * @return string|null */
    public function getDirectory(Shop\Template $template)
    {
        return $this->getThemeDirectory($template);
    }

    /** * @return string|null */
    public function getDirectoryByArray(array $template)
    {
        if ($template['plugin_id'] === null) {
            return $this->getFrontendThemeDirectory() . DIRECTORY_SEPARATOR . $template['template'];
        }

        
throw new Exception('Passed data array contains no valid theme name under the array key "template".');
        }

        // Ensure that the first character is upper case.         // Required for the directory structure and php namespace         $data['template'] = ucfirst($data['template']);

        $this->createThemeDirectory($data['template']);

        $this->generateThemePhp($data$parent);

        $directory = $this->getThemeDirectory($data['template']);
        $this->generateStructure(
            $this->structure,
            $directory
        );

        $this->eventManager->notify('Theme_Generator_Structure_Generated', [
            'data' => $data,
            'directory' => $directory,
        ]);

        $this->movePreviewImage(
            
Home | Imprint | This part of the site doesn't use cookies.