Skip to content

Commit

Permalink
Symfony 4 does not allow get a "null" serviceId
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed Dec 15, 2017
1 parent 149da5a commit b5006e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Router/ContainerAwareRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function __construct(ContainerInterface $container, array $receivers = []
protected function get($name)
{
$serviceId = parent::get($name);
$serviceId = null !== $serviceId ? $serviceId : '';

return $this->container->get($serviceId);
}
Expand Down

0 comments on commit b5006e6

Please sign in to comment.