From b38dcb3dcf02fb38efb50ded221704981c2a9120 Mon Sep 17 00:00:00 2001 From: Etienne Pallier Date: Fri, 12 Feb 2021 16:59:14 +0100 Subject: [PATCH] Bugfixes et icones sur menus : --- CHANGELOG | 6 ++++-- src/Application.php | 87 --------------------------------------------------------------------------------------- src/Application.php.37 | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 89 deletions(-) delete mode 100644 src/Application.php create mode 100644 src/Application.php.37 diff --git a/CHANGELOG b/CHANGELOG index 55a19b6..6aa8336 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -315,9 +315,11 @@ Commencer à implémenter le nouveau workflow v5 : ======= CHANGES ======= ------- -12/02/2021 v4.108.4-3.7.9 - - Icones sur les menus Outils et Autres listes +12/02/2021 v4.108.4-3.7.9 - Bugfixes et icones sur menus + - bugfix DebugKit : maintenant bien activé en mode debug=true (app.php) - bugfix action configurations/debugOff + - LOGO IP2I ajouté + - Icones sur les menus Outils et Autres listes ------- 11/02/2021 v4.108.3-3.7.9 diff --git a/src/Application.php b/src/Application.php deleted file mode 100644 index 650d32f..0000000 --- a/src/Application.php +++ /dev/null @@ -1,87 +0,0 @@ -addPlugin('Bake'); - } catch (MissingPluginException $e) { - // Do not halt if the plugin is missing - } - - $this->addPlugin('Migrations'); - } - - /* - * Only try to load DebugKit in development mode - * Debug Kit should not be installed on a production system - */ - if (Configure::read('debug')) { - $this->addPlugin(\DebugKit\Plugin::class); - } - } - - /** - * Setup the middleware queue your application will use. - * - * @param \Cake\Http\MiddlewareQueue $middlewareQueue The middleware queue to setup. - * @return \Cake\Http\MiddlewareQueue The updated middleware queue. - */ - public function middleware($middlewareQueue) - { - $middlewareQueue - // Catch any exceptions in the lower layers, - // and make an error page/response - ->add(new ErrorHandlerMiddleware(null, Configure::read('Error'))) - - // Handle plugin/theme assets like CakePHP normally does. - ->add(new AssetMiddleware([ - 'cacheTime' => Configure::read('Asset.cacheTime') - ])) - - // Add routing middleware. - // Routes collection cache enabled by default, to disable route caching - // pass null as cacheConfig, example: `new RoutingMiddleware($this)` - // you might want to disable this cache in case your routing is extremely simple - ->add(new RoutingMiddleware($this, '_cake_routes_')); - - return $middlewareQueue; - } -} diff --git a/src/Application.php.37 b/src/Application.php.37 new file mode 100644 index 0000000..650d32f --- /dev/null +++ b/src/Application.php.37 @@ -0,0 +1,87 @@ +addPlugin('Bake'); + } catch (MissingPluginException $e) { + // Do not halt if the plugin is missing + } + + $this->addPlugin('Migrations'); + } + + /* + * Only try to load DebugKit in development mode + * Debug Kit should not be installed on a production system + */ + if (Configure::read('debug')) { + $this->addPlugin(\DebugKit\Plugin::class); + } + } + + /** + * Setup the middleware queue your application will use. + * + * @param \Cake\Http\MiddlewareQueue $middlewareQueue The middleware queue to setup. + * @return \Cake\Http\MiddlewareQueue The updated middleware queue. + */ + public function middleware($middlewareQueue) + { + $middlewareQueue + // Catch any exceptions in the lower layers, + // and make an error page/response + ->add(new ErrorHandlerMiddleware(null, Configure::read('Error'))) + + // Handle plugin/theme assets like CakePHP normally does. + ->add(new AssetMiddleware([ + 'cacheTime' => Configure::read('Asset.cacheTime') + ])) + + // Add routing middleware. + // Routes collection cache enabled by default, to disable route caching + // pass null as cacheConfig, example: `new RoutingMiddleware($this)` + // you might want to disable this cache in case your routing is extremely simple + ->add(new RoutingMiddleware($this, '_cake_routes_')); + + return $middlewareQueue; + } +} -- libgit2 0.21.2