8000 feature #21978 [DoctrineBridge][Routing] Require PSR-11 container ins… · symfony/symfony@5eae2c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5eae2c7

Browse files
committed
feature #21978 [DoctrineBridge][Routing] Require PSR-11 container instead of Symfony container (enumag)
This PR was squashed before being merged into the 3.3-dev branch (closes #21978). Discussion ---------- [DoctrineBridge][Routing] Require PSR-11 container instead of Symfony container | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | The changed classes can easily use PSR-11 container instead of normal symfony container. I didn't change any classes that have the `$container` property as protected (for example `Symfony\Bundle\FrameworkBundle\Translation\Translator`) because I'm unsure whether that would be considered a BC break. Let me know if you want me to change such classes as well. Commits ------- 0043653 [DoctrineBridge][Routing] Require PSR-11 container instead of Symfony container
2 parents dd7c727 + 0043653 commit 5eae2c7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Doctrine\Common\EventArgs;
1515
use Doctrine\Common\EventManager;
16-
use Symfony\Component\DependencyInjection\ContainerInterface;
16+
use Psr\Container\ContainerInterface;
1717

1818
/**
1919
* Allows lazy loading of listener services.

src/Symfony/Component/Routing/Loader/DependencyInjection/ServiceRouterLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Routing\Loader\DependencyInjection;
1313

14-
use Symfony\Component\DependencyInjection\ContainerInterface;
14+
use Psr\Container\ContainerInterface;
1515
use Symfony\Component\Routing\Loader\ObjectRouteLoader;
1616

1717
/**

src/Symfony/Component/Routing/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
"symfony/http-foundation": "~2.8|~3.0",
2424
"symfony/yaml": "~3.3",
2525
"symfony/expression-language": "~2.8|~3.0",
26-
"symfony/dependency-injection": "~2.8|~3.0",
26+
"symfony/dependency-injection": "~3.3",
2727
"doctrine/annotations": "~1.0",
2828
"doctrine/common": "~2.2",
2929
"psr/log": "~1.0"
3030
},
3131
"conflict": {
3232
"symfony/config": "<2.8",
33+
"symfony/dependency-injection": "<3.3",
3334
"symfony/yaml": "<3.3"
3435
},
3536
"suggest": {

0 commit comments

Comments
 (0)
0