Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Commit

Permalink
- Fixing service registration
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Mar 17, 2018
1 parent 5336fc3 commit ea49e9f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/IPub/Images/DI/ImagesExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ private function registerPresenter() : void

// Images presenter
$builder->addDefinition($this->prefix('presenter'))
->setType(IPubModule\ImagesPresenter::class, [
->setType(IPubModule\ImagesPresenter::class)
->setArguments([
$configuration['wwwDir'],
]);

Expand All @@ -200,7 +201,7 @@ private function registerRoutes(array $routes = []) : void
$builder = $this->getContainerBuilder();

$router = $builder->addDefinition($this->prefix('router'))
->setType('Nette\Application\Routers\RouteList')
->setType(Nette\Application\Routers\RouteList::class)
->addTag($this->prefix('routeList'))
->setAutowired(FALSE);

Expand All @@ -226,7 +227,8 @@ private function registerRoutes(array $routes = []) : void
}

$builder->addDefinition($this->prefix('route.' . $i))
->setType(Application\Route::class, [$mask, $metadata, $flags])
->setType(Application\Route::class)
->setArguments([$mask, $metadata, $flags])
->setAutowired(FALSE)
->addTag(self::TAG_IMAGES_ROUTES)
->setInject(FALSE);
Expand Down

0 comments on commit ea49e9f

Please sign in to comment.