Loading admin/actions/clear-cache.php +12 −1 Changes for admin/actions/clear-cache.php: 12 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -9,7 +9,18 @@ try { "rm -Rf cache/*", ], false); $oa->exec("generate-proxies"); /* Nettoyage des proxies */ /** @var \Doctrine\ORM\EntityManager $entityManager */ $entityManager = $oa->getContainer()->get('doctrine.entitymanager.orm_default'); $destPath = $entityManager->getConfiguration()->getProxyDir(); if (!is_dir($destPath)) { mkdir($destPath, 0775, true); } $destPath = realpath($destPath); $metadatas = $entityManager->getMetadataFactory()->getAllMetadata(); $entityManager->getProxyFactory()->generateProxyClasses($metadatas, $destPath); $c->exec([ "cd $osedir", Loading module/Application/config/aaa_module.config.php +1 −15 Changes for module/Application/config/aaa_module.config.php: 1 added line, 15 removed lines. Original line number Diff line number Diff line Loading @@ -109,21 +109,7 @@ $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 −15 Changes for module/Application/src/Controller/IndexController.php: 0 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -77,19 +77,4 @@ 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 +12 −1 Changes for admin/actions/clear-cache.php: 12 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -9,7 +9,18 @@ try { "rm -Rf cache/*", ], false); $oa->exec("generate-proxies"); /* Nettoyage des proxies */ /** @var \Doctrine\ORM\EntityManager $entityManager */ $entityManager = $oa->getContainer()->get('doctrine.entitymanager.orm_default'); $destPath = $entityManager->getConfiguration()->getProxyDir(); if (!is_dir($destPath)) { mkdir($destPath, 0775, true); } $destPath = realpath($destPath); $metadatas = $entityManager->getMetadataFactory()->getAllMetadata(); $entityManager->getProxyFactory()->generateProxyClasses($metadatas, $destPath); $c->exec([ "cd $osedir", Loading
module/Application/config/aaa_module.config.php +1 −15 Changes for module/Application/config/aaa_module.config.php: 1 added line, 15 removed lines. Original line number Diff line number Diff line Loading @@ -109,21 +109,7 @@ $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 −15 Changes for module/Application/src/Controller/IndexController.php: 0 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -77,19 +77,4 @@ 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