1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 02:41:27 +02:00

Flextype Core: General fixes and refactoring #117

This commit is contained in:
Awilum
2019-06-11 21:22:00 +03:00
parent bd1d938a60
commit ee7e011cdc
2 changed files with 24 additions and 4 deletions

View File

@@ -1,14 +1,24 @@
<?php
/**
* @package Flextype
*
* @author Romanenko Sergey <hello@romanenko.digital>
* @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);
};

View File

@@ -1,5 +1,15 @@
<?php
/**
* @package Flextype
*
* @author Romanenko Sergey <hello@romanenko.digital>
* @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;