Loading admin/actions/clear-cache.php +3 −1 Changes for admin/actions/clear-cache.php: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -7,9 +7,11 @@ try { $c->exec([ "cd $osedir", "rm -Rf cache/*", "php public/index.php orm:generate-proxies", "chmod -R 777 cache", ], false); $oa->exec("generate-proxies"); $c->println('Cache nettoyé, proxies actualisés', $c::COLOR_GREEN); } catch (\Exception $e) { $c->println($e->getMessage()); Loading module/Application/config/aaa_module.config.php +15 Changes for module/Application/config/aaa_module.config.php: 15 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -107,6 +107,21 @@ $config = [ ], ], ], 'console' => [ 'router' => [ 'routes' => [ 'generate-proxies' => [ 'options' => [ 'route' => 'generate-proxies', 'defaults' => [ 'controller' => 'Application\Controller\Index', 'action' => 'generate-proxies', ], ], ], ], ], ], 'bjyauthorize' => [ 'identity_provider' => Provider\Identity\IdentityProvider::class, Loading module/Application/src/Controller/IndexController.php +17 Changes for module/Application/src/Controller/IndexController.php: 17 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ class IndexController extends AbstractController } public function changementAnneeAction() { /* Prise en compte du changement d'année!! */ Loading @@ -76,4 +77,20 @@ class IndexController extends AbstractController return []; } public function generateProxiesAction() { $destPath = $this->em()->getConfiguration()->getProxyDir(); if (!is_dir($destPath)) { mkdir($destPath, 0775, true); } $destPath = realpath($destPath); $metadatas = $this->em()->getMetadataFactory()->getAllMetadata(); $this->em()->getProxyFactory()->generateProxyClasses($metadatas, $destPath); } } No newline at end of file Loading
admin/actions/clear-cache.php +3 −1 Changes for admin/actions/clear-cache.php: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -7,9 +7,11 @@ try { $c->exec([ "cd $osedir", "rm -Rf cache/*", "php public/index.php orm:generate-proxies", "chmod -R 777 cache", ], false); $oa->exec("generate-proxies"); $c->println('Cache nettoyé, proxies actualisés', $c::COLOR_GREEN); } catch (\Exception $e) { $c->println($e->getMessage()); Loading
module/Application/config/aaa_module.config.php +15 Changes for module/Application/config/aaa_module.config.php: 15 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -107,6 +107,21 @@ $config = [ ], ], ], 'console' => [ 'router' => [ 'routes' => [ 'generate-proxies' => [ 'options' => [ 'route' => 'generate-proxies', 'defaults' => [ 'controller' => 'Application\Controller\Index', 'action' => 'generate-proxies', ], ], ], ], ], ], 'bjyauthorize' => [ 'identity_provider' => Provider\Identity\IdentityProvider::class, Loading
module/Application/src/Controller/IndexController.php +17 Changes for module/Application/src/Controller/IndexController.php: 17 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ class IndexController extends AbstractController } public function changementAnneeAction() { /* Prise en compte du changement d'année!! */ Loading @@ -76,4 +77,20 @@ class IndexController extends AbstractController return []; } public function generateProxiesAction() { $destPath = $this->em()->getConfiguration()->getProxyDir(); if (!is_dir($destPath)) { mkdir($destPath, 0775, true); } $destPath = realpath($destPath); $metadatas = $this->em()->getMetadataFactory()->getAllMetadata(); $this->em()->getProxyFactory()->generateProxyClasses($metadatas, $destPath); } } No newline at end of file