Loading Module.php +3 −12 Original line number Diff line number Diff line Loading @@ -3,21 +3,12 @@ namespace UnicaenDbAnonym; use Laminas\Config\Factory as ConfigFactory; use Unicaen\Console\Adapter\AdapterInterface; use Laminas\Mvc\ModuleRouteListener; use Laminas\Mvc\MvcEvent; use Laminas\Stdlib\Glob; use Unicaen\Console\Adapter\AdapterInterface; class Module { // public function onBootstrap(MvcEvent $e) // { // $eventManager = $e->getApplication()->getEventManager(); // $moduleRouteListener = new ModuleRouteListener(); // $moduleRouteListener->attach($eventManager); // } public function getConfig() public function getConfig(): array { $paths = array_merge( [__DIR__ . '/config/module.config.php'], Loading Loading @@ -49,7 +40,7 @@ class Module /** * @inheritDoc */ public function getConsoleUsage(AdapterInterface $console) public function getConsoleUsage(AdapterInterface $console): array { return [ /** Loading src/UnicaenDbAnonym/Controller/ConsoleController.php +1 −6 Original line number Diff line number Diff line Loading @@ -3,19 +3,14 @@ namespace UnicaenDbAnonym\Controller; use Exception; use RuntimeException; use Unicaen\Console\Controller\AbstractConsoleController; use UnicaenApp\Exception\RuntimeException; use UnicaenDbAnonym\Service\AnonymServiceAwareTrait; class ConsoleController extends AbstractConsoleController { use AnonymServiceAwareTrait; /** * @var string */ protected $outputDir; public function genererAction() { $start = microtime(true); Loading src/UnicaenDbAnonym/Controller/IndexController.php +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ namespace UnicaenDbAnonym\Controller; use Application\Controller\AbstractController; use Exception; use Laminas\View\Model\ViewModel; use UnicaenApp\Exception\RuntimeException; use RuntimeException; use UnicaenApp\Service\SQL\RunSQLResult; use UnicaenDbAnonym\Service\AnonymServiceAwareTrait; Loading src/UnicaenDbAnonym/Controller/IndexControllerFactory.php +2 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,8 @@ class IndexControllerFactory * * @param ContainerInterface $container * @return IndexController * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ public function __invoke(ContainerInterface $container): IndexController { Loading src/UnicaenDbAnonym/Service/AnonymService.php +4 −2 Original line number Diff line number Diff line Loading @@ -17,12 +17,12 @@ class AnonymService /** * @var array */ protected $entitiesConfig = []; protected array $entitiesConfig = []; /** * @var array */ protected $outputConfig = []; protected array $outputConfig = []; /** * @param array $config Loading Loading @@ -105,6 +105,7 @@ class AnonymService /** * @throws \Doctrine\DBAL\ConnectionException * @throws \Doctrine\DBAL\Exception */ public function anonymiser(): RunSQLResult { Loading @@ -122,6 +123,7 @@ class AnonymService /** * @throws \Doctrine\DBAL\ConnectionException * @throws \Doctrine\DBAL\Exception */ public function restaurer(): RunSQLResult { Loading Loading
Module.php +3 −12 Original line number Diff line number Diff line Loading @@ -3,21 +3,12 @@ namespace UnicaenDbAnonym; use Laminas\Config\Factory as ConfigFactory; use Unicaen\Console\Adapter\AdapterInterface; use Laminas\Mvc\ModuleRouteListener; use Laminas\Mvc\MvcEvent; use Laminas\Stdlib\Glob; use Unicaen\Console\Adapter\AdapterInterface; class Module { // public function onBootstrap(MvcEvent $e) // { // $eventManager = $e->getApplication()->getEventManager(); // $moduleRouteListener = new ModuleRouteListener(); // $moduleRouteListener->attach($eventManager); // } public function getConfig() public function getConfig(): array { $paths = array_merge( [__DIR__ . '/config/module.config.php'], Loading Loading @@ -49,7 +40,7 @@ class Module /** * @inheritDoc */ public function getConsoleUsage(AdapterInterface $console) public function getConsoleUsage(AdapterInterface $console): array { return [ /** Loading
src/UnicaenDbAnonym/Controller/ConsoleController.php +1 −6 Original line number Diff line number Diff line Loading @@ -3,19 +3,14 @@ namespace UnicaenDbAnonym\Controller; use Exception; use RuntimeException; use Unicaen\Console\Controller\AbstractConsoleController; use UnicaenApp\Exception\RuntimeException; use UnicaenDbAnonym\Service\AnonymServiceAwareTrait; class ConsoleController extends AbstractConsoleController { use AnonymServiceAwareTrait; /** * @var string */ protected $outputDir; public function genererAction() { $start = microtime(true); Loading
src/UnicaenDbAnonym/Controller/IndexController.php +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ namespace UnicaenDbAnonym\Controller; use Application\Controller\AbstractController; use Exception; use Laminas\View\Model\ViewModel; use UnicaenApp\Exception\RuntimeException; use RuntimeException; use UnicaenApp\Service\SQL\RunSQLResult; use UnicaenDbAnonym\Service\AnonymServiceAwareTrait; Loading
src/UnicaenDbAnonym/Controller/IndexControllerFactory.php +2 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,8 @@ class IndexControllerFactory * * @param ContainerInterface $container * @return IndexController * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ public function __invoke(ContainerInterface $container): IndexController { Loading
src/UnicaenDbAnonym/Service/AnonymService.php +4 −2 Original line number Diff line number Diff line Loading @@ -17,12 +17,12 @@ class AnonymService /** * @var array */ protected $entitiesConfig = []; protected array $entitiesConfig = []; /** * @var array */ protected $outputConfig = []; protected array $outputConfig = []; /** * @param array $config Loading Loading @@ -105,6 +105,7 @@ class AnonymService /** * @throws \Doctrine\DBAL\ConnectionException * @throws \Doctrine\DBAL\Exception */ public function anonymiser(): RunSQLResult { Loading @@ -122,6 +123,7 @@ class AnonymService /** * @throws \Doctrine\DBAL\ConnectionException * @throws \Doctrine\DBAL\Exception */ public function restaurer(): RunSQLResult { Loading