mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Change DispatcherAware to accept concrete instances
Dispatcher is already instanciated when invoking controller. So useless to lazy load it.
This commit is contained in:
@@ -26,9 +26,7 @@ class TaskManager implements ControllerProviderInterface, ServiceProviderInterfa
|
||||
{
|
||||
$app['controller.admin.task'] = $app->share(function (\Alchemy\Phrasea\Application $app) {
|
||||
return (new TaskManagerController($app))
|
||||
->setDispatcherLocator(function () use ($app) {
|
||||
return $app['dispatcher'];
|
||||
});
|
||||
->setDispatcher($app['dispatcher']);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user