Skip to content

Commit

Permalink
Merge pull request #352 from acrobat/sf4-support
Browse files Browse the repository at this point in the history
Allow symfony 4 components
  • Loading branch information
acrobat authored Jan 13, 2018
2 parents b38d402 + b5006e6 commit e4ca25a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"require": {
"php": "^5.6 || ^7.0",
"bernard/normalt": "~1.0",
"symfony/event-dispatcher": "^2.7|^3.0",
"symfony/event-dispatcher": "^2.7|^3.0|^4.0",
"beberlei/assert": "~2.1"
},
"require-dev" : {
"psr/log": "~1.0",
"pimple/pimple": "~1.0",
"predis/predis": "~0.8",
"symfony/console": "^2.7|^3.0",
"symfony/dependency-injection": "^2.7|^3.0",
"symfony/console": "^2.7|^3.0|^4.0",
"symfony/dependency-injection": "^2.7|^3.0|^4.0",
"doctrine/dbal": "~2.3",
"aws/aws-sdk-php": "~2.4|~3.0",
"pda/pheanstalk": "~3.0",
Expand Down
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 e4ca25a

Please sign in to comment.