Skip to content
Permalink
Browse files

[Core] Create middlewares after PathProvider and RoutingService initi…

…alization.
  • Loading branch information...
piotrooo committed Apr 5, 2019
1 parent de87141 commit 4ab809ce8152dc7ef02c67bd6d42924d5d73631e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Ouzo/Core/Bootstrap.php
@@ -157,11 +157,11 @@ public function setupInjector()
{
$injector = $this->createInjector();
$middlewareRepository = $this->createMiddlewareRepository($injector);
$config = $injector->getInjectorConfig();
$config->bind(RoutingService::class)->in(Scope::SINGLETON);
$config->bind(PathProviderInterface::class)->to(PathProvider::class)->in(Scope::SINGLETON);
$middlewareRepository = $this->createMiddlewareRepository($injector);
$config->bind(MiddlewareRepository::class)->toInstance($middlewareRepository);
if ($this->injectorCallback !== null) {

0 comments on commit 4ab809c

Please sign in to comment.
You can’t perform that action at this time.