[3.0][HttpKernel] remove deprecated functions and classes#14634
[3.0][HttpKernel] remove deprecated functions and classes#14634fabpot merged 1 commit intosymfony:masterfrom
Conversation
vincentaubert
commented
May 14, 2015
| Q | A |
|---|---|
| Bug fix? | no |
| New feature? | no |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | |
| License | MIT |
| Doc PR |
|
Hello, I have a problem with the dependency injection of the Framework bundle. in the services.xml file in the framework bundle I got this : But the Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel class is marked as deprecated in the HttpKernel component. By what should I replace this class to make it work ? Thanks |
38c523c to
d98acac
Compare
|
@vincentaubert You can use |
|
You should replace it by |
|
Thanks |
There was a problem hiding this comment.
This change and the next one should happen in Symfony 2.7 instead.
aaf7e51 to
fcfdafa
Compare
|
ping @symfony/mergers This PR is ready for merge. The 2 failing tests have been fixed in the 2.7 branch via the #14637 PR but the 2.7 branch hasn't been merged in master at the moment. I launched the tests locally with the patch and all the tests passed |
|
|
fcfdafa to
1195613
Compare
|
fixed thanks |
1195613 to
2a29119
Compare
|
done and code rebased on the latest master |
There was a problem hiding this comment.
You should keep this line!
2a29119 to
5bf6b0d
Compare
336016c to
c19f918
Compare
|
Thank you @vincentaubert. |
…ses (vincentaubert) This PR was merged into the 3.0-dev branch. Discussion ---------- [3.0][HttpKernel] remove deprecated functions and classes | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- c19f918 [3.0][HttpKernel] remove deprecated functions and classes
There was a problem hiding this comment.
requestStack must be made required
…derrabus) This PR was submitted for the master branch but it was merged into the 3.0 branch instead (closes #225). Discussion ---------- Don't include ContainerAwareHttpKernel if it's not present When generating the bootstrap file, the composer script handler also includes `Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel`, a class that has been removed with PR symfony/symfony#14634 and that will be gone in Symfony 3.0. This pull request checks if the class is present and includes `Symfony\Component\HttpKernel\HttpKernel` otherwise. The code should work with Symfony 2.7 as well as with 3.0-dev. Commits ------- 2e45487 Don't include ContainerAwareHttpKernel if it's not present.
…ion) This PR was merged into the 3.0-dev branch. Discussion ---------- [HttpKernel] make RequestStack parameter required | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Continuation of #14634, #8904 Commits ------- a2e154d [HttpKernel] make RequestStack parameter required for classes that need it