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:
@@ -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
|
||||
|
Reference in New Issue
Block a user