From ee7e011cdc1184971b12133ef3cfe8af5570d685 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 11 Jun 2019 21:22:00 +0300 Subject: [PATCH] Flextype Core: General fixes and refactoring #117 --- flextype/dependencies.php | 18 ++++++++++++++---- flextype/middlewares.php | 10 ++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/flextype/dependencies.php b/flextype/dependencies.php index 33946053..405495e1 100644 --- a/flextype/dependencies.php +++ b/flextype/dependencies.php @@ -1,14 +1,24 @@ + * @link http://romanenko.digital + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flextype; use Flextype\Component\Registry\Registry; use Thunder\Shortcode\ShortcodeFacade; use Slim\Flash\Messages; +use Cocur\Slugify\Slugify; use League\Glide\ServerFactory; use League\Glide\Responses\SlimResponseFactory; use League\Event\Emitter; -use Cocur\Slugify\Slugify; /** * Add CSRF (cross-site request forgery) protection service to Flextype container @@ -210,9 +220,9 @@ $flextype['themes'] = function ($container) use ($flextype, $app) { return new Themes($flextype, $app); }; - /** - * Add plugins service to Flextype container - */ +/** + * Add plugins service to Flextype container + */ $flextype['plugins'] = function ($container) use ($flextype, $app) { return new Plugins($flextype, $app); }; diff --git a/flextype/middlewares.php b/flextype/middlewares.php index a2afc711..f0b36faf 100644 --- a/flextype/middlewares.php +++ b/flextype/middlewares.php @@ -1,5 +1,15 @@ + * @link http://romanenko.digital + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flextype; use Psr7Middlewares\Middleware;