Skip to content

Commit

Permalink
More query
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer committed Mar 20, 2017
1 parent fced97e commit 6c92710
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/private/AppFramework/DependencyInjection/DIContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ public function __construct($appName, $urlParams = array(), ServerContainer $ser

$this->registerService('Dispatcher', function(SimpleContainer $c) {
return new Dispatcher(
$c['Protocol'],
$c['MiddlewareDispatcher'],
$c['ControllerMethodReflector'],
$c->query('Protocol'),
$c->query('MiddlewareDispatcher'),
$c->query('ControllerMethodReflector'),
$c->query['Request']
);
});
Expand All @@ -241,7 +241,7 @@ public function __construct($appName, $urlParams = array(), ServerContainer $ser

return new SecurityMiddleware(
$c->query['Request'],
$c['ControllerMethodReflector'],
$c->query('ControllerMethodReflector'),
$server->getNavigationManager(),
$server->getURLGenerator(),
$server->getLogger(),
Expand All @@ -260,16 +260,16 @@ public function __construct($appName, $urlParams = array(), ServerContainer $ser
$this->registerService('CORSMiddleware', function(SimpleContainer $c) {
return new CORSMiddleware(
$c->query('Request'),
$c['ControllerMethodReflector'],
$c['OCP\IUserSession'],
$c->query('ControllerMethodReflector'),
$c->query('OCP\IUserSession'),
$c->getServer()->getBruteForceThrottler()
);
});

$this->registerService('SessionMiddleware', function(SimpleContainer $c) use ($app) {
return new SessionMiddleware(
$c->query('Request'),
$c['ControllerMethodReflector'],
$c->query('ControllerMethodReflector'),
$app->getServer()->getSession()
);
});
Expand All @@ -279,7 +279,7 @@ public function __construct($appName, $urlParams = array(), ServerContainer $ser
$userSession = $app->getServer()->getUserSession();
$session = $app->getServer()->getSession();
$urlGenerator = $app->getServer()->getURLGenerator();
$reflector = $c['ControllerMethodReflector'];
$reflector = $c->query('ControllerMethodReflector');
$request = $app->getServer()->getRequest();
return new TwoFactorMiddleware($twoFactorManager, $userSession, $session, $urlGenerator, $reflector, $request);
});
Expand Down

0 comments on commit 6c92710

Please sign in to comment.