Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar committed Oct 4, 2021
1 parent ad1a348 commit 1ee3f10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DI/ApiExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public function __construct()
public function loadConfiguration(): void
{
$builder = $this->getContainerBuilder();
$builder->addDefinition($this->prefix('routerFactory'))
->setFactory(RouterFactory::class);
/** @var ServiceDefinition $routerFactory */
$routerFactory = $builder->addDefinition($this->prefix('routerFactory')); //@phpstan-ignore-line
$routerFactory->setFactory(RouterFactory::class);
}

public function beforeCompile(): void
Expand Down

0 comments on commit 1ee3f10

Please sign in to comment.