1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 08:04:05 +02:00

Flextype Slim Integration - next round of integration

This commit is contained in:
Awilum
2019-03-01 21:47:58 +03:00
parent e0b15dc316
commit 54d424f20c

View File

@@ -20,6 +20,7 @@ use Flextype\Component\Filesystem\Filesystem;
use Thunder\Shortcode\ShortcodeFacade;
use Slim\Http\Request;
use Slim\Http\Response;
use Slim\Flash\Messages;
use League\Glide\ServerFactory;
use League\Glide\Responses\SlimResponseFactory;
use League\Event\Emitter;
@@ -73,6 +74,13 @@ $flextype['emitter'] = function($container) {
return new Emitter();
};
/**
* Add emitter service to Flextype container
*/
$flextype['flash'] = function ($container) {
return new Messages();
};
/**
* Add registry service to Flextype container
*/