Loading CHANGELOG.md +16 −0 Original line number Diff line number Diff line CHANGELOG ========= 6.0.11 ----- - Suppression du ConsoleController utilisé par une seule appli pour lancer une ligne SQL. - Suppression de la dépendance avec unicaen/console. 6.0.10 ----- - [Fix] FormElementCollection : correction des 'Warning: Undefined variable'. 6.0.9 ----- - MultipageForm : ajout aux données en session du fieldset dont les données viennent d'être postées (clé '_fieldset'). 6.0.8 ----- Loading Module.php +14 −39 Original line number Diff line number Diff line Loading @@ -2,30 +2,27 @@ namespace UnicaenApp; use Locale; use Unicaen\Console\Console; use UnicaenApp\Controller\Plugin\MessengerPluginFactory; use UnicaenApp\Controller\Plugin\Upload\UploaderPluginFactory; use UnicaenApp\Mvc\Listener\MaintenanceListener; use UnicaenApp\Mvc\Listener\ModalListener; use UnicaenApp\Mvc\View\Http\ExceptionStrategy; use UnicaenApp\Options\ModuleOptions; use Laminas\EventManager\EventInterface; use Laminas\Http\Request as HttpRequest; use Laminas\Mvc\I18n\Translator; use Laminas\ModuleManager\Feature\AutoloaderProviderInterface; use Laminas\ModuleManager\Feature\BootstrapListenerInterface; use Laminas\ModuleManager\Feature\ConfigProviderInterface; use Laminas\ModuleManager\Feature\ControllerPluginProviderInterface; use Laminas\ModuleManager\Feature\ServiceProviderInterface; use Unicaen\Console\View\ExceptionStrategy as ConsoleExceptionStrategy; use UnicaenApp\Mvc\View\Http\ExceptionStrategy as HttpExceptionStrategy; use Laminas\Mvc\I18n\Translator; use Laminas\ServiceManager\ServiceManager; use Laminas\Session\Container; use Laminas\Session\SessionManager; use Laminas\Validator\AbstractValidator; use Laminas\View\Helper\Navigation; use Laminas\View\HelperPluginManager; use Locale; use UnicaenApp\Controller\Plugin\MessengerPluginFactory; use UnicaenApp\Controller\Plugin\Upload\UploaderPluginFactory; use UnicaenApp\Mvc\Listener\MaintenanceListener; use UnicaenApp\Mvc\Listener\ModalListener; use UnicaenApp\Mvc\View\Http\ExceptionStrategy as HttpExceptionStrategy; use UnicaenApp\Options\ModuleOptions; define('__VENDOR_DIR__', dirname(dirname(__DIR__))); Loading Loading @@ -93,15 +90,13 @@ class Module implements $eventManager = $application->getEventManager(); /** @var HttpExceptionStrategy|ConsoleExceptionStrategy $baseExceptionStrategy */ if ($e->getRequest() instanceof HttpRequest) { /** @var HttpExceptionStrategy $baseExceptionStrategy */ $baseExceptionStrategy = $services->get('HttpExceptionStrategy'); } else { $baseExceptionStrategy = $services->get('ConsoleExceptionStrategy'); } $exceptionStrategy = new ExceptionStrategy(); $exceptionStrategy = new HttpExceptionStrategy(); $exceptionStrategy->setDisplayExceptions($baseExceptionStrategy->displayExceptions()); $exceptionStrategy->attach($eventManager); } /* Démarrage des mouchards en fonction de la configuration... */ $services->get('MouchardService')->createMouchardsFromConfig(); Loading Loading @@ -148,7 +143,7 @@ class Module implements */ public function bootstrapSession($e) { if (Console::isConsole()) { if (Util::isConsole()) { return; } Loading @@ -174,7 +169,7 @@ class Module implements */ public function appendSessionRefreshJs(EventInterface $e) { if (Console::isConsole()) { if (Util::isConsole()) { return; } Loading Loading @@ -227,24 +222,4 @@ class Module implements { return []; } public function getConsoleUsage($console) { return [ // command 'run-sql-script --path= [--logfile=] [--connection=]' => "Exécuter un script SQL", // parameters ['--path', "Requis. Chemin vers le script SQL à exécuter."], ['--logfile', "Facultatif. Chemin du fichier des logs d'exécution du script. Par défaut, il est généré."], ['--connection', "Facultatif. Identifiant de la connexion Doctrine. Par défaut : 'orm_default'."], // command 'run-sql-query --sql= [--logfile=] [--connection=]' => "Exécuter une requête SQL", // parameters ['--sql', "Requis. Requête SQL à exécuter. Ex: \"begin DBMS_MVIEW.REFRESH('MV_RECHERCHE_THESE'); end;\"."], ['--logfile', "Facultatif. Chemin du fichier des logs d'exécution. Par défaut, il est généré."], ['--connection', "Facultatif. Identifiant de la connexion Doctrine. Par défaut : 'orm_default'."], ]; } } composer.json +28 −29 Original line number Diff line number Diff line Loading @@ -8,42 +8,41 @@ } ], "require": { "php": "^8.2", "php": "^8.0", "ext-bcmath": "*", "ext-intl": "*", "ext-ldap": "*", "beberlei/assert": "^3.3", "mpdf/mpdf": "^8.0", "friendsofphp/proxy-manager-lts": "^1.0", "doctrine/doctrine-orm-module": "^5.3", "doctrine/dbal": "^3.7", "laminas/laminas-config": "^3.9", "laminas/laminas-eventmanager": "^3.10", "laminas/laminas-form": "^3.9", "laminas/laminas-http": "^2.18", "laminas/laminas-i18n": "^2.22", "laminas/laminas-i18n-resources": "^2.9", "laminas/laminas-json": "^3.5", "laminas/laminas-ldap": "^2.17", "laminas/laminas-log": "^2.16", "laminas/laminas-mail": "^2.22", "laminas/laminas-mvc": "^3.6", "laminas/laminas-mvc-i18n": "^1.7", "laminas/laminas-mvc-plugin-fileprg": "^1.6", "laminas/laminas-mvc-plugin-flashmessenger": "^1.9", "laminas/laminas-mvc-plugin-identity": "^1.5", "laminas/laminas-mvc-plugin-prg": "^1.7", "laminas/laminas-navigation": "^2.18", "laminas/laminas-serializer": "^2.16", "laminas/laminas-servicemanager": "^3.20", "laminas/laminas-session": "^2.16", "laminas/laminas-text": "^2.10", "laminas/laminas-view": "^2.27", "laminas/laminas-dependency-plugin": "^2.2", "unicaen/console": "dev-php82" "ocramius/proxy-manager": "^2.0", "doctrine/doctrine-orm-module": "^5.0", "doctrine/dbal": "^3.2", "laminas/laminas-config": "^3.7", "laminas/laminas-eventmanager": "^3.4", "laminas/laminas-form": "^3.1", "laminas/laminas-http": "^2.15", "laminas/laminas-i18n": "^2.13", "laminas/laminas-i18n-resources": "^2.8", "laminas/laminas-json": "^3.3", "laminas/laminas-ldap": "^2.12", "laminas/laminas-log": "^2.15", "laminas/laminas-mail": "^2.15", "laminas/laminas-mvc": "^3.3", "laminas/laminas-mvc-i18n": "^1.3", "laminas/laminas-mvc-plugin-fileprg": "^1.2", "laminas/laminas-mvc-plugin-flashmessenger": "^1.5", "laminas/laminas-mvc-plugin-identity": "^1.3", "laminas/laminas-mvc-plugin-prg": "^1.5", "laminas/laminas-navigation": "^2.13", "laminas/laminas-serializer": "^2.12", "laminas/laminas-servicemanager": "^3.10", "laminas/laminas-session": "^2.12", "laminas/laminas-text": "^2.9", "laminas/laminas-view": "^2.16", "laminas/laminas-dependency-plugin": "^2.2" }, "require-dev": { "laminas/laminas-test": "^4.7" "laminas/laminas-test": "^4.2" }, "autoload": { "psr-0": { Loading composer.lock +57 −105 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], "content-hash": "bc642ea7d34f783d1d16e4811ce7777e", "content-hash": "c22dd7eae81104095d27d0ff3f9cbda2", "packages": [ { "name": "beberlei/assert", Loading Loading @@ -460,16 +460,16 @@ }, { "name": "doctrine/dbal", "version": "3.6.6", "version": "3.7.1", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", "reference": "63646ffd71d1676d2f747f871be31b7e921c7864" "reference": "5b7bd66c9ff58c04c5474ab85edce442f8081cb2" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/doctrine/dbal/zipball/63646ffd71d1676d2f747f871be31b7e921c7864", "reference": "63646ffd71d1676d2f747f871be31b7e921c7864", "url": "https://api.github.com/repos/doctrine/dbal/zipball/5b7bd66c9ff58c04c5474ab85edce442f8081cb2", "reference": "5b7bd66c9ff58c04c5474ab85edce442f8081cb2", "shasum": "" }, "require": { Loading @@ -485,9 +485,9 @@ "doctrine/coding-standard": "12.0.0", "fig/log-test": "^1", "jetbrains/phpstorm-stubs": "2023.1", "phpstan/phpstan": "1.10.29", "phpstan/phpstan": "1.10.35", "phpstan/phpstan-strict-rules": "^1.5", "phpunit/phpunit": "9.6.9", "phpunit/phpunit": "9.6.13", "psalm/plugin-phpunit": "0.18.4", "slevomat/coding-standard": "8.13.1", "squizlabs/php_codesniffer": "3.7.2", Loading Loading @@ -553,7 +553,7 @@ ], "support": { "issues": "https://github.com/doctrine/dbal/issues", "source": "https://github.com/doctrine/dbal/tree/3.6.6" "source": "https://github.com/doctrine/dbal/tree/3.7.1" }, "funding": [ { Loading @@ -569,20 +569,20 @@ "type": "tidelift" } ], "time": "2023-08-17T05:38:17+00:00" "time": "2023-10-06T05:06:20+00:00" }, { "name": "doctrine/deprecations", "version": "v1.1.1", "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/doctrine/deprecations.git", "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3" "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/doctrine/deprecations/zipball/612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931", "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931", "shasum": "" }, "require": { Loading Loading @@ -614,9 +614,9 @@ "homepage": "https://www.doctrine-project.org/", "support": { "issues": "https://github.com/doctrine/deprecations/issues", "source": "https://github.com/doctrine/deprecations/tree/v1.1.1" "source": "https://github.com/doctrine/deprecations/tree/1.1.2" }, "time": "2023-06-03T09:27:29+00:00" "time": "2023-09-27T20:04:15+00:00" }, { "name": "doctrine/doctrine-laminas-hydrator", Loading Loading @@ -1900,20 +1900,20 @@ }, { "name": "laminas/laminas-eventmanager", "version": "3.10.0", "version": "3.11.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-eventmanager.git", "reference": "5a5114ab2d3fa4424faa46a2fb0a4e49a61f6eba" "reference": "9cfa79ce247c567f05ce4b7c975c6bdf9698c5dd" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/laminas/laminas-eventmanager/zipball/5a5114ab2d3fa4424faa46a2fb0a4e49a61f6eba", "reference": "5a5114ab2d3fa4424faa46a2fb0a4e49a61f6eba", "url": "https://api.github.com/repos/laminas/laminas-eventmanager/zipball/9cfa79ce247c567f05ce4b7c975c6bdf9698c5dd", "reference": "9cfa79ce247c567f05ce4b7c975c6bdf9698c5dd", "shasum": "" }, "require": { "php": "~8.0.0 || ~8.1.0 || ~8.2.0" "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "conflict": { "container-interop/container-interop": "<1.2", Loading Loading @@ -1964,7 +1964,7 @@ "type": "community_bridge" } ], "time": "2023-01-11T19:52:45+00:00" "time": "2023-10-10T08:29:58+00:00" }, { "name": "laminas/laminas-filter", Loading Loading @@ -2631,20 +2631,20 @@ }, { "name": "laminas/laminas-loader", "version": "2.9.0", "version": "2.10.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-loader.git", "reference": "51ed9c3fa42d1098a9997571730c0cbf42d078d3" "reference": "e6fe952304ef40ce45cd814751ab35d42afdad12" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/laminas/laminas-loader/zipball/51ed9c3fa42d1098a9997571730c0cbf42d078d3", "reference": "51ed9c3fa42d1098a9997571730c0cbf42d078d3", "url": "https://api.github.com/repos/laminas/laminas-loader/zipball/e6fe952304ef40ce45cd814751ab35d42afdad12", "reference": "e6fe952304ef40ce45cd814751ab35d42afdad12", "shasum": "" }, "require": { "php": "~8.0.0 || ~8.1.0 || ~8.2.0" "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "conflict": { "zendframework/zend-loader": "*" Loading Loading @@ -2683,7 +2683,7 @@ "type": "community_bridge" } ], "time": "2022-10-16T12:50:49+00:00" "time": "2023-10-18T09:58:51+00:00" }, { "name": "laminas/laminas-log", Loading Loading @@ -2852,21 +2852,21 @@ }, { "name": "laminas/laminas-mime", "version": "2.11.0", "version": "2.12.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-mime.git", "reference": "60ec04b755821c79c1987ce291b44e69f2c0831f" "reference": "08cc544778829b7d68d27a097885bd6e7130135e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/laminas/laminas-mime/zipball/60ec04b755821c79c1987ce291b44e69f2c0831f", "reference": "60ec04b755821c79c1987ce291b44e69f2c0831f", "url": "https://api.github.com/repos/laminas/laminas-mime/zipball/08cc544778829b7d68d27a097885bd6e7130135e", "reference": "08cc544778829b7d68d27a097885bd6e7130135e", "shasum": "" }, "require": { "laminas/laminas-stdlib": "^2.7 || ^3.0", "php": "~8.0.0 || ~8.1.0 || ~8.2.0" "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "conflict": { "zendframework/zend-mime": "*" Loading Loading @@ -2909,7 +2909,7 @@ "type": "community_bridge" } ], "time": "2022-10-18T08:38:15+00:00" "time": "2023-11-02T16:47:19+00:00" }, { "name": "laminas/laminas-modulemanager", Loading Loading @@ -3648,22 +3648,22 @@ }, { "name": "laminas/laminas-serializer", "version": "2.16.1", "version": "2.17.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-serializer.git", "reference": "63f0a14de4e50eee24a87788168ba48b7db9e687" "reference": "9641dee4208078ff8dfbcdd74048adb0b3ee517e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/laminas/laminas-serializer/zipball/63f0a14de4e50eee24a87788168ba48b7db9e687", "reference": "63f0a14de4e50eee24a87788168ba48b7db9e687", "url": "https://api.github.com/repos/laminas/laminas-serializer/zipball/9641dee4208078ff8dfbcdd74048adb0b3ee517e", "reference": "9641dee4208078ff8dfbcdd74048adb0b3ee517e", "shasum": "" }, "require": { "laminas/laminas-json": "^3.1", "laminas/laminas-stdlib": "^3.2", "php": "~8.0.0 || ~8.1.0 || ~8.2.0" "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "conflict": { "zendframework/zend-serializer": "*" Loading Loading @@ -3714,7 +3714,7 @@ "type": "community_bridge" } ], "time": "2023-09-13T21:58:37+00:00" "time": "2023-10-01T15:38:34+00:00" }, { "name": "laminas/laminas-servicemanager", Loading Loading @@ -4251,16 +4251,16 @@ }, { "name": "mpdf/mpdf", "version": "v8.2.0", "version": "v8.2.2", "source": { "type": "git", "url": "https://github.com/mpdf/mpdf.git", "reference": "170a236a588d177c2aa7447ce490a030ca68e6f4" "reference": "596a87b876d7793be7be060a8ac13424de120dd5" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/mpdf/mpdf/zipball/170a236a588d177c2aa7447ce490a030ca68e6f4", "reference": "170a236a588d177c2aa7447ce490a030ca68e6f4", "url": "https://api.github.com/repos/mpdf/mpdf/zipball/596a87b876d7793be7be060a8ac13424de120dd5", "reference": "596a87b876d7793be7be060a8ac13424de120dd5", "shasum": "" }, "require": { Loading @@ -4270,7 +4270,7 @@ "mpdf/psr-log-aware-trait": "^2.0 || ^3.0", "myclabs/deep-copy": "^1.7", "paragonie/random_compat": "^1.4|^2.0|^9.99.99", "php": "^5.6 || ^7.0 || ~8.0.0 || ~8.1.0 || ~8.2.0", "php": "^5.6 || ^7.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", "psr/http-message": "^1.0 || ^2.0", "psr/log": "^1.0 || ^2.0 || ^3.0", "setasign/fpdi": "^2.1" Loading Loading @@ -4328,7 +4328,7 @@ "type": "custom" } ], "time": "2023-09-01T11:44:52+00:00" "time": "2023-11-07T13:52:14+00:00" }, { "name": "mpdf/psr-http-message-shim", Loading Loading @@ -4969,16 +4969,16 @@ }, { "name": "setasign/fpdi", "version": "v2.4.1", "version": "v2.5.0", "source": { "type": "git", "url": "https://github.com/Setasign/FPDI.git", "reference": "f4ba73e5bc053ccc90b81717c5df1cb2ea7bae7b" "reference": "ecf0459643ec963febfb9a5d529dcd93656006a4" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/Setasign/FPDI/zipball/f4ba73e5bc053ccc90b81717c5df1cb2ea7bae7b", "reference": "f4ba73e5bc053ccc90b81717c5df1cb2ea7bae7b", "url": "https://api.github.com/repos/Setasign/FPDI/zipball/ecf0459643ec963febfb9a5d529dcd93656006a4", "reference": "ecf0459643ec963febfb9a5d529dcd93656006a4", "shasum": "" }, "require": { Loading Loading @@ -5029,7 +5029,7 @@ ], "support": { "issues": "https://github.com/Setasign/FPDI/issues", "source": "https://github.com/Setasign/FPDI/tree/v2.4.1" "source": "https://github.com/Setasign/FPDI/tree/v2.5.0" }, "funding": [ { Loading @@ -5037,7 +5037,7 @@ "type": "tidelift" } ], "time": "2023-07-27T08:12:09+00:00" "time": "2023-09-28T10:46:27+00:00" }, { "name": "stella-maris/clock", Loading Loading @@ -5088,16 +5088,16 @@ }, { "name": "symfony/console", "version": "v5.4.28", "version": "v5.4.31", "source": { "type": "git", "url": "https://github.com/symfony/console.git", "reference": "f4f71842f24c2023b91237c72a365306f3c58827" "reference": "11ac5f154e0e5c4c77af83ad11ead9165280b92a" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/console/zipball/f4f71842f24c2023b91237c72a365306f3c58827", "reference": "f4f71842f24c2023b91237c72a365306f3c58827", "url": "https://api.github.com/repos/symfony/console/zipball/11ac5f154e0e5c4c77af83ad11ead9165280b92a", "reference": "11ac5f154e0e5c4c77af83ad11ead9165280b92a", "shasum": "" }, "require": { Loading Loading @@ -5167,7 +5167,7 @@ "terminal" ], "support": { "source": "https://github.com/symfony/console/tree/v5.4.28" "source": "https://github.com/symfony/console/tree/v5.4.31" }, "funding": [ { Loading @@ -5183,7 +5183,7 @@ "type": "tidelift" } ], "time": "2023-08-07T06:12:30+00:00" "time": "2023-10-31T07:58:33+00:00" }, { "name": "symfony/deprecation-contracts", Loading Loading @@ -6075,54 +6075,6 @@ ], "time": "2023-01-01T08:36:10+00:00" }, { "name": "unicaen/console", "version": "6.0.0", "source": { "type": "git", "url": "https://git.unicaen.fr/lib/unicaen/console.git", "reference": "4d52eee8c0b2ae238aec8fa692685de455eaf7ca" }, "require": { "laminas/laminas-stdlib": "^3.2", "php": "^8.0" }, "replace": { "zendframework/zend-console": "^2.8.0" }, "require-dev": { "laminas/laminas-coding-standard": "~1.0.0", "laminas/laminas-filter": "^2.7.2", "laminas/laminas-json": "^2.6 || ^3.0", "laminas/laminas-validator": "^2.10.1", "phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.5.18" }, "suggest": { "laminas/laminas-filter": "To support DefaultRouteMatcher usage", "laminas/laminas-validator": "To support DefaultRouteMatcher usage" }, "type": "library", "autoload": { "psr-4": { "Unicaen\\Console\\": "src/" } }, "autoload-dev": { "psr-4": { "UnicaenTest\\Console\\": "test/" } }, "scripts": { "test": [ "phpunit --colors=always" ], "test-coverage": [ "phpunit --colors=always --coverage-clover clover.xml" ] }, "description": "Build console applications using getopt syntax or routing, complete with prompts", "time": "2022-11-28T12:26:08+00:00" }, { "name": "webimpress/safe-writer", "version": "2.2.0", Loading config/module.config.php +0 −32 Original line number Diff line number Diff line Loading @@ -3,9 +3,7 @@ namespace UnicaenApp; use Laminas\ServiceManager\Factory\InvokableFactory; use Unicaen\Console\Router\Simple; use UnicaenApp\Controller\CacheControllerFactory; use UnicaenApp\Controller\ConsoleController; use UnicaenApp\DeveloperTools\MessageCollectorService; use UnicaenApp\DeveloperTools\MessageCollectorServiceFactory; use UnicaenApp\Form\Element\SearchAndSelect2; Loading Loading @@ -262,36 +260,6 @@ return [ ], ], ], 'console' => [ 'router' => [ 'routes' => [ 'run-sql-script' => [ 'type' => Simple::class, 'options' => [ 'route' => 'run-sql-script --path= [--logfile=] [--connection=]', 'defaults' => [ 'controller' => ConsoleController::class, 'action' => 'runSQLScript', ], ], ], 'run-sql-query' => [ 'type' => Simple::class, 'options' => [ 'route' => 'run-sql-query --sql= [--logfile=] [--connection=]', 'defaults' => [ 'controller' => ConsoleController::class, 'action' => 'runSQLQuery', ], ], ], ], ], 'view_manager' => [ 'display_not_found_reason' => true, 'display_exceptions' => true, ], ], 'service_manager' => [ 'factories' => [ 'translator' => 'Laminas\I18n\Translator\TranslatorServiceFactory', Loading Loading
CHANGELOG.md +16 −0 Original line number Diff line number Diff line CHANGELOG ========= 6.0.11 ----- - Suppression du ConsoleController utilisé par une seule appli pour lancer une ligne SQL. - Suppression de la dépendance avec unicaen/console. 6.0.10 ----- - [Fix] FormElementCollection : correction des 'Warning: Undefined variable'. 6.0.9 ----- - MultipageForm : ajout aux données en session du fieldset dont les données viennent d'être postées (clé '_fieldset'). 6.0.8 ----- Loading
Module.php +14 −39 Original line number Diff line number Diff line Loading @@ -2,30 +2,27 @@ namespace UnicaenApp; use Locale; use Unicaen\Console\Console; use UnicaenApp\Controller\Plugin\MessengerPluginFactory; use UnicaenApp\Controller\Plugin\Upload\UploaderPluginFactory; use UnicaenApp\Mvc\Listener\MaintenanceListener; use UnicaenApp\Mvc\Listener\ModalListener; use UnicaenApp\Mvc\View\Http\ExceptionStrategy; use UnicaenApp\Options\ModuleOptions; use Laminas\EventManager\EventInterface; use Laminas\Http\Request as HttpRequest; use Laminas\Mvc\I18n\Translator; use Laminas\ModuleManager\Feature\AutoloaderProviderInterface; use Laminas\ModuleManager\Feature\BootstrapListenerInterface; use Laminas\ModuleManager\Feature\ConfigProviderInterface; use Laminas\ModuleManager\Feature\ControllerPluginProviderInterface; use Laminas\ModuleManager\Feature\ServiceProviderInterface; use Unicaen\Console\View\ExceptionStrategy as ConsoleExceptionStrategy; use UnicaenApp\Mvc\View\Http\ExceptionStrategy as HttpExceptionStrategy; use Laminas\Mvc\I18n\Translator; use Laminas\ServiceManager\ServiceManager; use Laminas\Session\Container; use Laminas\Session\SessionManager; use Laminas\Validator\AbstractValidator; use Laminas\View\Helper\Navigation; use Laminas\View\HelperPluginManager; use Locale; use UnicaenApp\Controller\Plugin\MessengerPluginFactory; use UnicaenApp\Controller\Plugin\Upload\UploaderPluginFactory; use UnicaenApp\Mvc\Listener\MaintenanceListener; use UnicaenApp\Mvc\Listener\ModalListener; use UnicaenApp\Mvc\View\Http\ExceptionStrategy as HttpExceptionStrategy; use UnicaenApp\Options\ModuleOptions; define('__VENDOR_DIR__', dirname(dirname(__DIR__))); Loading Loading @@ -93,15 +90,13 @@ class Module implements $eventManager = $application->getEventManager(); /** @var HttpExceptionStrategy|ConsoleExceptionStrategy $baseExceptionStrategy */ if ($e->getRequest() instanceof HttpRequest) { /** @var HttpExceptionStrategy $baseExceptionStrategy */ $baseExceptionStrategy = $services->get('HttpExceptionStrategy'); } else { $baseExceptionStrategy = $services->get('ConsoleExceptionStrategy'); } $exceptionStrategy = new ExceptionStrategy(); $exceptionStrategy = new HttpExceptionStrategy(); $exceptionStrategy->setDisplayExceptions($baseExceptionStrategy->displayExceptions()); $exceptionStrategy->attach($eventManager); } /* Démarrage des mouchards en fonction de la configuration... */ $services->get('MouchardService')->createMouchardsFromConfig(); Loading Loading @@ -148,7 +143,7 @@ class Module implements */ public function bootstrapSession($e) { if (Console::isConsole()) { if (Util::isConsole()) { return; } Loading @@ -174,7 +169,7 @@ class Module implements */ public function appendSessionRefreshJs(EventInterface $e) { if (Console::isConsole()) { if (Util::isConsole()) { return; } Loading Loading @@ -227,24 +222,4 @@ class Module implements { return []; } public function getConsoleUsage($console) { return [ // command 'run-sql-script --path= [--logfile=] [--connection=]' => "Exécuter un script SQL", // parameters ['--path', "Requis. Chemin vers le script SQL à exécuter."], ['--logfile', "Facultatif. Chemin du fichier des logs d'exécution du script. Par défaut, il est généré."], ['--connection', "Facultatif. Identifiant de la connexion Doctrine. Par défaut : 'orm_default'."], // command 'run-sql-query --sql= [--logfile=] [--connection=]' => "Exécuter une requête SQL", // parameters ['--sql', "Requis. Requête SQL à exécuter. Ex: \"begin DBMS_MVIEW.REFRESH('MV_RECHERCHE_THESE'); end;\"."], ['--logfile', "Facultatif. Chemin du fichier des logs d'exécution. Par défaut, il est généré."], ['--connection', "Facultatif. Identifiant de la connexion Doctrine. Par défaut : 'orm_default'."], ]; } }
composer.json +28 −29 Original line number Diff line number Diff line Loading @@ -8,42 +8,41 @@ } ], "require": { "php": "^8.2", "php": "^8.0", "ext-bcmath": "*", "ext-intl": "*", "ext-ldap": "*", "beberlei/assert": "^3.3", "mpdf/mpdf": "^8.0", "friendsofphp/proxy-manager-lts": "^1.0", "doctrine/doctrine-orm-module": "^5.3", "doctrine/dbal": "^3.7", "laminas/laminas-config": "^3.9", "laminas/laminas-eventmanager": "^3.10", "laminas/laminas-form": "^3.9", "laminas/laminas-http": "^2.18", "laminas/laminas-i18n": "^2.22", "laminas/laminas-i18n-resources": "^2.9", "laminas/laminas-json": "^3.5", "laminas/laminas-ldap": "^2.17", "laminas/laminas-log": "^2.16", "laminas/laminas-mail": "^2.22", "laminas/laminas-mvc": "^3.6", "laminas/laminas-mvc-i18n": "^1.7", "laminas/laminas-mvc-plugin-fileprg": "^1.6", "laminas/laminas-mvc-plugin-flashmessenger": "^1.9", "laminas/laminas-mvc-plugin-identity": "^1.5", "laminas/laminas-mvc-plugin-prg": "^1.7", "laminas/laminas-navigation": "^2.18", "laminas/laminas-serializer": "^2.16", "laminas/laminas-servicemanager": "^3.20", "laminas/laminas-session": "^2.16", "laminas/laminas-text": "^2.10", "laminas/laminas-view": "^2.27", "laminas/laminas-dependency-plugin": "^2.2", "unicaen/console": "dev-php82" "ocramius/proxy-manager": "^2.0", "doctrine/doctrine-orm-module": "^5.0", "doctrine/dbal": "^3.2", "laminas/laminas-config": "^3.7", "laminas/laminas-eventmanager": "^3.4", "laminas/laminas-form": "^3.1", "laminas/laminas-http": "^2.15", "laminas/laminas-i18n": "^2.13", "laminas/laminas-i18n-resources": "^2.8", "laminas/laminas-json": "^3.3", "laminas/laminas-ldap": "^2.12", "laminas/laminas-log": "^2.15", "laminas/laminas-mail": "^2.15", "laminas/laminas-mvc": "^3.3", "laminas/laminas-mvc-i18n": "^1.3", "laminas/laminas-mvc-plugin-fileprg": "^1.2", "laminas/laminas-mvc-plugin-flashmessenger": "^1.5", "laminas/laminas-mvc-plugin-identity": "^1.3", "laminas/laminas-mvc-plugin-prg": "^1.5", "laminas/laminas-navigation": "^2.13", "laminas/laminas-serializer": "^2.12", "laminas/laminas-servicemanager": "^3.10", "laminas/laminas-session": "^2.12", "laminas/laminas-text": "^2.9", "laminas/laminas-view": "^2.16", "laminas/laminas-dependency-plugin": "^2.2" }, "require-dev": { "laminas/laminas-test": "^4.7" "laminas/laminas-test": "^4.2" }, "autoload": { "psr-0": { Loading
composer.lock +57 −105 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], "content-hash": "bc642ea7d34f783d1d16e4811ce7777e", "content-hash": "c22dd7eae81104095d27d0ff3f9cbda2", "packages": [ { "name": "beberlei/assert", Loading Loading @@ -460,16 +460,16 @@ }, { "name": "doctrine/dbal", "version": "3.6.6", "version": "3.7.1", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", "reference": "63646ffd71d1676d2f747f871be31b7e921c7864" "reference": "5b7bd66c9ff58c04c5474ab85edce442f8081cb2" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/doctrine/dbal/zipball/63646ffd71d1676d2f747f871be31b7e921c7864", "reference": "63646ffd71d1676d2f747f871be31b7e921c7864", "url": "https://api.github.com/repos/doctrine/dbal/zipball/5b7bd66c9ff58c04c5474ab85edce442f8081cb2", "reference": "5b7bd66c9ff58c04c5474ab85edce442f8081cb2", "shasum": "" }, "require": { Loading @@ -485,9 +485,9 @@ "doctrine/coding-standard": "12.0.0", "fig/log-test": "^1", "jetbrains/phpstorm-stubs": "2023.1", "phpstan/phpstan": "1.10.29", "phpstan/phpstan": "1.10.35", "phpstan/phpstan-strict-rules": "^1.5", "phpunit/phpunit": "9.6.9", "phpunit/phpunit": "9.6.13", "psalm/plugin-phpunit": "0.18.4", "slevomat/coding-standard": "8.13.1", "squizlabs/php_codesniffer": "3.7.2", Loading Loading @@ -553,7 +553,7 @@ ], "support": { "issues": "https://github.com/doctrine/dbal/issues", "source": "https://github.com/doctrine/dbal/tree/3.6.6" "source": "https://github.com/doctrine/dbal/tree/3.7.1" }, "funding": [ { Loading @@ -569,20 +569,20 @@ "type": "tidelift" } ], "time": "2023-08-17T05:38:17+00:00" "time": "2023-10-06T05:06:20+00:00" }, { "name": "doctrine/deprecations", "version": "v1.1.1", "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/doctrine/deprecations.git", "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3" "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/doctrine/deprecations/zipball/612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931", "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931", "shasum": "" }, "require": { Loading Loading @@ -614,9 +614,9 @@ "homepage": "https://www.doctrine-project.org/", "support": { "issues": "https://github.com/doctrine/deprecations/issues", "source": "https://github.com/doctrine/deprecations/tree/v1.1.1" "source": "https://github.com/doctrine/deprecations/tree/1.1.2" }, "time": "2023-06-03T09:27:29+00:00" "time": "2023-09-27T20:04:15+00:00" }, { "name": "doctrine/doctrine-laminas-hydrator", Loading Loading @@ -1900,20 +1900,20 @@ }, { "name": "laminas/laminas-eventmanager", "version": "3.10.0", "version": "3.11.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-eventmanager.git", "reference": "5a5114ab2d3fa4424faa46a2fb0a4e49a61f6eba" "reference": "9cfa79ce247c567f05ce4b7c975c6bdf9698c5dd" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/laminas/laminas-eventmanager/zipball/5a5114ab2d3fa4424faa46a2fb0a4e49a61f6eba", "reference": "5a5114ab2d3fa4424faa46a2fb0a4e49a61f6eba", "url": "https://api.github.com/repos/laminas/laminas-eventmanager/zipball/9cfa79ce247c567f05ce4b7c975c6bdf9698c5dd", "reference": "9cfa79ce247c567f05ce4b7c975c6bdf9698c5dd", "shasum": "" }, "require": { "php": "~8.0.0 || ~8.1.0 || ~8.2.0" "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "conflict": { "container-interop/container-interop": "<1.2", Loading Loading @@ -1964,7 +1964,7 @@ "type": "community_bridge" } ], "time": "2023-01-11T19:52:45+00:00" "time": "2023-10-10T08:29:58+00:00" }, { "name": "laminas/laminas-filter", Loading Loading @@ -2631,20 +2631,20 @@ }, { "name": "laminas/laminas-loader", "version": "2.9.0", "version": "2.10.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-loader.git", "reference": "51ed9c3fa42d1098a9997571730c0cbf42d078d3" "reference": "e6fe952304ef40ce45cd814751ab35d42afdad12" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/laminas/laminas-loader/zipball/51ed9c3fa42d1098a9997571730c0cbf42d078d3", "reference": "51ed9c3fa42d1098a9997571730c0cbf42d078d3", "url": "https://api.github.com/repos/laminas/laminas-loader/zipball/e6fe952304ef40ce45cd814751ab35d42afdad12", "reference": "e6fe952304ef40ce45cd814751ab35d42afdad12", "shasum": "" }, "require": { "php": "~8.0.0 || ~8.1.0 || ~8.2.0" "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "conflict": { "zendframework/zend-loader": "*" Loading Loading @@ -2683,7 +2683,7 @@ "type": "community_bridge" } ], "time": "2022-10-16T12:50:49+00:00" "time": "2023-10-18T09:58:51+00:00" }, { "name": "laminas/laminas-log", Loading Loading @@ -2852,21 +2852,21 @@ }, { "name": "laminas/laminas-mime", "version": "2.11.0", "version": "2.12.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-mime.git", "reference": "60ec04b755821c79c1987ce291b44e69f2c0831f" "reference": "08cc544778829b7d68d27a097885bd6e7130135e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/laminas/laminas-mime/zipball/60ec04b755821c79c1987ce291b44e69f2c0831f", "reference": "60ec04b755821c79c1987ce291b44e69f2c0831f", "url": "https://api.github.com/repos/laminas/laminas-mime/zipball/08cc544778829b7d68d27a097885bd6e7130135e", "reference": "08cc544778829b7d68d27a097885bd6e7130135e", "shasum": "" }, "require": { "laminas/laminas-stdlib": "^2.7 || ^3.0", "php": "~8.0.0 || ~8.1.0 || ~8.2.0" "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "conflict": { "zendframework/zend-mime": "*" Loading Loading @@ -2909,7 +2909,7 @@ "type": "community_bridge" } ], "time": "2022-10-18T08:38:15+00:00" "time": "2023-11-02T16:47:19+00:00" }, { "name": "laminas/laminas-modulemanager", Loading Loading @@ -3648,22 +3648,22 @@ }, { "name": "laminas/laminas-serializer", "version": "2.16.1", "version": "2.17.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-serializer.git", "reference": "63f0a14de4e50eee24a87788168ba48b7db9e687" "reference": "9641dee4208078ff8dfbcdd74048adb0b3ee517e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/laminas/laminas-serializer/zipball/63f0a14de4e50eee24a87788168ba48b7db9e687", "reference": "63f0a14de4e50eee24a87788168ba48b7db9e687", "url": "https://api.github.com/repos/laminas/laminas-serializer/zipball/9641dee4208078ff8dfbcdd74048adb0b3ee517e", "reference": "9641dee4208078ff8dfbcdd74048adb0b3ee517e", "shasum": "" }, "require": { "laminas/laminas-json": "^3.1", "laminas/laminas-stdlib": "^3.2", "php": "~8.0.0 || ~8.1.0 || ~8.2.0" "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "conflict": { "zendframework/zend-serializer": "*" Loading Loading @@ -3714,7 +3714,7 @@ "type": "community_bridge" } ], "time": "2023-09-13T21:58:37+00:00" "time": "2023-10-01T15:38:34+00:00" }, { "name": "laminas/laminas-servicemanager", Loading Loading @@ -4251,16 +4251,16 @@ }, { "name": "mpdf/mpdf", "version": "v8.2.0", "version": "v8.2.2", "source": { "type": "git", "url": "https://github.com/mpdf/mpdf.git", "reference": "170a236a588d177c2aa7447ce490a030ca68e6f4" "reference": "596a87b876d7793be7be060a8ac13424de120dd5" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/mpdf/mpdf/zipball/170a236a588d177c2aa7447ce490a030ca68e6f4", "reference": "170a236a588d177c2aa7447ce490a030ca68e6f4", "url": "https://api.github.com/repos/mpdf/mpdf/zipball/596a87b876d7793be7be060a8ac13424de120dd5", "reference": "596a87b876d7793be7be060a8ac13424de120dd5", "shasum": "" }, "require": { Loading @@ -4270,7 +4270,7 @@ "mpdf/psr-log-aware-trait": "^2.0 || ^3.0", "myclabs/deep-copy": "^1.7", "paragonie/random_compat": "^1.4|^2.0|^9.99.99", "php": "^5.6 || ^7.0 || ~8.0.0 || ~8.1.0 || ~8.2.0", "php": "^5.6 || ^7.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", "psr/http-message": "^1.0 || ^2.0", "psr/log": "^1.0 || ^2.0 || ^3.0", "setasign/fpdi": "^2.1" Loading Loading @@ -4328,7 +4328,7 @@ "type": "custom" } ], "time": "2023-09-01T11:44:52+00:00" "time": "2023-11-07T13:52:14+00:00" }, { "name": "mpdf/psr-http-message-shim", Loading Loading @@ -4969,16 +4969,16 @@ }, { "name": "setasign/fpdi", "version": "v2.4.1", "version": "v2.5.0", "source": { "type": "git", "url": "https://github.com/Setasign/FPDI.git", "reference": "f4ba73e5bc053ccc90b81717c5df1cb2ea7bae7b" "reference": "ecf0459643ec963febfb9a5d529dcd93656006a4" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/Setasign/FPDI/zipball/f4ba73e5bc053ccc90b81717c5df1cb2ea7bae7b", "reference": "f4ba73e5bc053ccc90b81717c5df1cb2ea7bae7b", "url": "https://api.github.com/repos/Setasign/FPDI/zipball/ecf0459643ec963febfb9a5d529dcd93656006a4", "reference": "ecf0459643ec963febfb9a5d529dcd93656006a4", "shasum": "" }, "require": { Loading Loading @@ -5029,7 +5029,7 @@ ], "support": { "issues": "https://github.com/Setasign/FPDI/issues", "source": "https://github.com/Setasign/FPDI/tree/v2.4.1" "source": "https://github.com/Setasign/FPDI/tree/v2.5.0" }, "funding": [ { Loading @@ -5037,7 +5037,7 @@ "type": "tidelift" } ], "time": "2023-07-27T08:12:09+00:00" "time": "2023-09-28T10:46:27+00:00" }, { "name": "stella-maris/clock", Loading Loading @@ -5088,16 +5088,16 @@ }, { "name": "symfony/console", "version": "v5.4.28", "version": "v5.4.31", "source": { "type": "git", "url": "https://github.com/symfony/console.git", "reference": "f4f71842f24c2023b91237c72a365306f3c58827" "reference": "11ac5f154e0e5c4c77af83ad11ead9165280b92a" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/console/zipball/f4f71842f24c2023b91237c72a365306f3c58827", "reference": "f4f71842f24c2023b91237c72a365306f3c58827", "url": "https://api.github.com/repos/symfony/console/zipball/11ac5f154e0e5c4c77af83ad11ead9165280b92a", "reference": "11ac5f154e0e5c4c77af83ad11ead9165280b92a", "shasum": "" }, "require": { Loading Loading @@ -5167,7 +5167,7 @@ "terminal" ], "support": { "source": "https://github.com/symfony/console/tree/v5.4.28" "source": "https://github.com/symfony/console/tree/v5.4.31" }, "funding": [ { Loading @@ -5183,7 +5183,7 @@ "type": "tidelift" } ], "time": "2023-08-07T06:12:30+00:00" "time": "2023-10-31T07:58:33+00:00" }, { "name": "symfony/deprecation-contracts", Loading Loading @@ -6075,54 +6075,6 @@ ], "time": "2023-01-01T08:36:10+00:00" }, { "name": "unicaen/console", "version": "6.0.0", "source": { "type": "git", "url": "https://git.unicaen.fr/lib/unicaen/console.git", "reference": "4d52eee8c0b2ae238aec8fa692685de455eaf7ca" }, "require": { "laminas/laminas-stdlib": "^3.2", "php": "^8.0" }, "replace": { "zendframework/zend-console": "^2.8.0" }, "require-dev": { "laminas/laminas-coding-standard": "~1.0.0", "laminas/laminas-filter": "^2.7.2", "laminas/laminas-json": "^2.6 || ^3.0", "laminas/laminas-validator": "^2.10.1", "phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.5.18" }, "suggest": { "laminas/laminas-filter": "To support DefaultRouteMatcher usage", "laminas/laminas-validator": "To support DefaultRouteMatcher usage" }, "type": "library", "autoload": { "psr-4": { "Unicaen\\Console\\": "src/" } }, "autoload-dev": { "psr-4": { "UnicaenTest\\Console\\": "test/" } }, "scripts": { "test": [ "phpunit --colors=always" ], "test-coverage": [ "phpunit --colors=always --coverage-clover clover.xml" ] }, "description": "Build console applications using getopt syntax or routing, complete with prompts", "time": "2022-11-28T12:26:08+00:00" }, { "name": "webimpress/safe-writer", "version": "2.2.0", Loading
config/module.config.php +0 −32 Original line number Diff line number Diff line Loading @@ -3,9 +3,7 @@ namespace UnicaenApp; use Laminas\ServiceManager\Factory\InvokableFactory; use Unicaen\Console\Router\Simple; use UnicaenApp\Controller\CacheControllerFactory; use UnicaenApp\Controller\ConsoleController; use UnicaenApp\DeveloperTools\MessageCollectorService; use UnicaenApp\DeveloperTools\MessageCollectorServiceFactory; use UnicaenApp\Form\Element\SearchAndSelect2; Loading Loading @@ -262,36 +260,6 @@ return [ ], ], ], 'console' => [ 'router' => [ 'routes' => [ 'run-sql-script' => [ 'type' => Simple::class, 'options' => [ 'route' => 'run-sql-script --path= [--logfile=] [--connection=]', 'defaults' => [ 'controller' => ConsoleController::class, 'action' => 'runSQLScript', ], ], ], 'run-sql-query' => [ 'type' => Simple::class, 'options' => [ 'route' => 'run-sql-query --sql= [--logfile=] [--connection=]', 'defaults' => [ 'controller' => ConsoleController::class, 'action' => 'runSQLQuery', ], ], ], ], ], 'view_manager' => [ 'display_not_found_reason' => true, 'display_exceptions' => true, ], ], 'service_manager' => [ 'factories' => [ 'translator' => 'Laminas\I18n\Translator\TranslatorServiceFactory', Loading