mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix(container): Don't use deprecated things to set up controllers for apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
17c40b9474
commit
2f18996347
2 changed files with 2 additions and 3 deletions
|
|
@ -134,8 +134,7 @@ class App {
|
|||
$eventLogger->start('app:controller:dispatcher', 'Initialize dispatcher and pre-middleware');
|
||||
|
||||
// initialize the dispatcher and run all the middleware before the controller
|
||||
/** @var Dispatcher $dispatcher */
|
||||
$dispatcher = $container['Dispatcher'];
|
||||
$dispatcher = $container->get(Dispatcher::class);
|
||||
|
||||
$eventLogger->end('app:controller:dispatcher');
|
||||
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
|
|||
$this->registerDeprecatedAlias('Dispatcher', Dispatcher::class);
|
||||
$this->registerService(Dispatcher::class, function (ContainerInterface $c) {
|
||||
return new Dispatcher(
|
||||
$c->get('Protocol'),
|
||||
$c->get(Http::class),
|
||||
$c->get(MiddlewareDispatcher::class),
|
||||
$c->get(IControllerMethodReflector::class),
|
||||
$c->get(IRequest::class),
|
||||
|
|
|
|||
Loading…
Reference in a new issue