Loading .gitignore +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 config/autoload/application.global.php +1 Changes for config/autoload/application.global.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ return [ 'result_cache' => 'array', 'hydration_cache' => 'array', 'generate_proxies' => $localConfig['bdd']['generateProxies'], 'proxy_dir' => 'data/cache/DoctrineProxy', ], ], ], Loading module/Application/src/Application/Controller/AbstractController.php +5 Changes for module/Application/src/Application/Controller/AbstractController.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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 Loading
.gitignore +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
config/autoload/application.global.php +1 Changes for config/autoload/application.global.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ return [ 'result_cache' => 'array', 'hydration_cache' => 'array', 'generate_proxies' => $localConfig['bdd']['generateProxies'], 'proxy_dir' => 'data/cache/DoctrineProxy', ], ], ], Loading
module/Application/src/Application/Controller/AbstractController.php +5 Changes for module/Application/src/Application/Controller/AbstractController.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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