From aa9d177248a86c3d4cdb6848bbacea57ec0985f6 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 19 Apr 2019 10:51:13 +0300 Subject: [PATCH] Flextype Slim Integration - next round of integration --- flextype/bootstrap.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flextype/bootstrap.php b/flextype/bootstrap.php index 6b90b95b..c7866b23 100755 --- a/flextype/bootstrap.php +++ b/flextype/bootstrap.php @@ -314,10 +314,17 @@ $app->get('/image/{path:.+}', function (Request $request, Response $response, ar return $flextype['images']->getImageResponse($args['path'], $_GET); }); +/** + * Add plugins service to Flextype container + */ +$flextype['plugins'] = function($container) use ($flextype, $app) { + return new Plugins($flextype, $app); +}; + /** * Init plugins */ -$plugins = new Plugins($flextype, $app); +$flextype['plugins']->init($flextype, $app); /** * Run application