src/Cache/UtilCacheWarmer.php
private function generateTemplateMapper($cacheDir)
    {
        $files = $this->templateUtil->getAllTemplates();

        if (empty($files)) {
            return;
        }

        $this->filesystem->dumpFile(
            $cacheDir.'/contao/config/twig-templates.php',
            sprintf("<?php\n\nreturn %s;\n", var_export($files, true))
        );
    }
private function generateTemplateMapper($cacheDir)
    {
        $files = $this->templateUtil->getAllTemplates();

        if (empty($files)) {
            return;
        }

        $this->filesystem->dumpFile(
            $cacheDir.'/contao/config/twig-templates.php',
            sprintf("<?php\n\nreturn %s;\n", var_export($files, true))
        );
    }
private function generateTemplateMapper ( $ cacheDir ) { $ files = $ this -> templateUtil -> getAllTemplates ( ) ; if ( empty ( $ files ) ) { return ; } $ this -> filesystem -> dumpFile ( $ cacheDir . '/contao/config/twig-templates.php' , sprintf ( "<?php\n\nreturn %s;\n" , var_export ( $ files , true ) ) ) ; }
Generates the template mapper array.

@param string $cacheDir The cache directory
Generates the template mapper array .