Skip to content

Commit

Permalink
minor #32724 [FrameworkBundle] make tests forward compatible with DI …
Browse files Browse the repository at this point in the history
…4.4 (xabbuh)

This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] make tests forward compatible with DI 4.4

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

affede1 make tests forward compatible with DI 4.4
  • Loading branch information
xabbuh committed Jul 24, 2019
2 parents 1ce527a + affede1 commit b333892
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -1170,6 +1170,7 @@ protected function createContainerFromFile($file, $data = [], $resetCompilerPass
if ($resetCompilerPasses) {
$container->getCompilerPassConfig()->setOptimizationPasses([]);
$container->getCompilerPassConfig()->setRemovingPasses([]);
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
}
$container->getCompilerPassConfig()->setBeforeRemovingPasses([new AddConstraintValidatorsPass(), new TranslatorPass('translator.default', 'translation.reader')]);
$container->getCompilerPassConfig()->setAfterRemovingPasses([new AddAnnotationsCachedReaderPass()]);
Expand All @@ -1191,6 +1192,7 @@ protected function createContainerFromClosure($closure, $data = [])

$container->getCompilerPassConfig()->setOptimizationPasses([]);
$container->getCompilerPassConfig()->setRemovingPasses([]);
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
$container->compile();

return $container;
Expand Down

0 comments on commit b333892

Please sign in to comment.