From 54d424f20c5c35a04189a5c4f5359f873f1c02e1 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 1 Mar 2019 21:47:58 +0300 Subject: [PATCH] Flextype Slim Integration - next round of integration --- flextype/bootstrap.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flextype/bootstrap.php b/flextype/bootstrap.php index 104e160b..35fddbbd 100755 --- a/flextype/bootstrap.php +++ b/flextype/bootstrap.php @@ -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 */