1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-13 16:44:36 +02:00

Flextype Slim Integration - next round of integration

This commit is contained in:
Awilum
2019-04-19 10:51:13 +03:00
parent 301f01d5a4
commit aa9d177248

View File

@@ -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