getSnippetDirectory example

return $themes;
    }

    /** * Reads the snippet of all theme ini files and write them * into the database. * * The theme snippet namespace are prefixed with themes/theme-name */
    private function synchronizeSnippets(Template $template)
    {
        $directory = $this->pathResolver->getSnippetDirectory($template);

        if (!file_exists($directory) || !$this->snippetConfig['writeToDb']) {
            return;
        }

        $namespace = $this->util->getSnippetNamespace($template);

        $this->snippetWriter->loadToDatabase(
            $directory,
            false,
            $namespace
        );
Home | Imprint | This part of the site doesn't use cookies.