Commit 9a64f7a3 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Mise à jour des dossiers de cache pour les centraliser

parent 5d79acd8
Loading
Loading
Loading
Loading
+1 −2
Changes for .gitignore: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
config/autoload/*.local.php
vendor
composer.lock
data/cache
data/DoctrineORMModule
data/cache/*
.idea
deploy.log
 No newline at end of file
+1
Changes for config/autoload/application.global.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ return [
                'result_cache'     => 'array',
                'hydration_cache'  => 'array',
                'generate_proxies' => $localConfig['bdd']['generateProxies'],
                'proxy_dir'        => 'data/cache/DoctrineProxy',
            ],
        ],
    ],
+5
Changes for module/Application/src/Application/Controller/AbstractController.php: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -57,6 +57,11 @@ abstract class AbstractController extends AbstractActionController
     */
    protected function pdf()
    {
        $pdfPath = getcwd().'/data/cache/mpdf/';
        if (!file_exists($pdfPath)){
            mkdir($pdfPath);
        }
        define('_MPDF_TTFONTDATAPATH', $pdfPath);
        return new Pdf(\Application::$container->get('view_manager')->getRenderer());
    }
}
 No newline at end of file