Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.0][HttpKernel] remove deprecated functions and classes#14634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

vincentaubert
Copy link
Contributor

QA
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

@vincentaubert
Copy link
ContributorAuthor

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 :

<service>            <argument type="service" />            <argument type="service" />            <argument type="service" />            <argument type="service" />        </service>

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

@vincentaubertvincentaubertforce-pushed themaster_remove_deprecation_httpKernel branch from38c523c tod98acacCompareMay 14, 2015 13:43
@xabbuh
Copy link
Member

@vincentaubert You can useSymfony\Component\HttpKernel\HttpKernel instead.

@dosten
Copy link
Contributor

You should replace it bySymfony\Component\HttpKernel\HttpKernel and remove<argument type="service" /> from the definition.

@vincentaubert
Copy link
ContributorAuthor

Thanks

@@ -75,7 +75,7 @@ public function testLogNonUtf8()

public function testLogLongString()
{
$logger = $this->getMock('Symfony\\Component\\HttpKernel\\Log\\LoggerInterface');
$logger = $this->getMock('Psr\\Log\\LoggerInterface');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This change and the next one should happen in Symfony 2.7 instead.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

done in PR#14637

@vincentaubertvincentaubertforce-pushed themaster_remove_deprecation_httpKernel branch 3 times, most recently fromaaf7e51 tofcfdafaCompareMay 14, 2015 18:19
@vincentaubert
Copy link
ContributorAuthor

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

@dosten
Copy link
Contributor

ProfilerListener::getSubscribedEvents() remove theKernelEvents::REQUEST => array('onKernelRequest', 1024), line and the comments above.

@vincentaubertvincentaubertforce-pushed themaster_remove_deprecation_httpKernel branch fromfcfdafa to1195613CompareMay 15, 2015 06:57
@vincentaubert
Copy link
ContributorAuthor

fixed thanks

@@ -200,10 +200,8 @@ public function getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1)
foreach ($this->data as $dump) {
if (method_exists($dump['data'], 'withMaxDepth')) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

if to be removed also

@vincentaubertvincentaubertforce-pushed themaster_remove_deprecation_httpKernel branch from1195613 to2a29119CompareMay 15, 2015 14:19
@vincentaubert
Copy link
ContributorAuthor

done and code rebased on the latest master

@@ -198,12 +198,6 @@ public function getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1)
$dumps = array();

foreach ($this->data as $dump) {
if (method_exists($dump['data'], 'withMaxDepth')) {
$dumper->dump($dump['data']->withMaxDepth($maxDepthLimit)->withMaxItemsPerDepth($maxItemsPerDepth));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

You should keep this line!

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

fixed

@vincentaubertvincentaubertforce-pushed themaster_remove_deprecation_httpKernel branch from2a29119 to5bf6b0dCompareMay 15, 2015 15:24
@vincentaubertvincentaubertforce-pushed themaster_remove_deprecation_httpKernel branch from336016c toc19f918CompareMay 16, 2015 08:02
@fabpot
Copy link
Member

Thank you@vincentaubert.

@fabpotfabpot merged commitc19f918 intosymfony:masterMay 16, 2015
fabpot added a commit that referenced this pull requestMay 16, 2015
…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
@vincentaubertvincentaubert deleted the master_remove_deprecation_httpKernel branchMay 16, 2015 13:38
@@ -67,34 +67,12 @@ public function __construct($matcher, RequestContext $context = null, LoggerInte
throw new \InvalidArgumentException('You must either pass a RequestContext or the matcher must implement RequestContextAwareInterface.');
}

if (!$requestStack instanceof RequestStack) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

requestStack must be made required

fabpot added a commit to sensiolabs/SensioDistributionBundle that referenced this pull requestSep 16, 2015
…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 presentWhen generating the bootstrap file, the composer script handler also includes `Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel`, a class that has been removed with PRsymfony/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.
fabpot added a commit that referenced this pull requestOct 1, 2015
…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/aContinuation of#14634,#8904Commits-------a2e154d [HttpKernel] make RequestStack parameter required for classes that need it
@fabpotfabpot mentioned this pull requestNov 16, 2015
nicolas-grekas added a commit that referenced this pull requestAug 7, 2017
This PR was merged into the 3.3 branch.Discussion----------[HttpKernel] Remove isset call used for legacy| Q             | A| ------------- | ---| Branch?       | 3.3 <!-- see comment below -->| Bug fix?      | no| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->| BC breaks?    | no| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->| Tests pass?   | yes| Fixed tickets | N/A <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | N/AAdded in#9628 in which the request stack dependency was nullable. Forgotten to be removed in#14634.Commits-------e0a6010 [HttpKernel] Remove isset call used for legacy
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@vincentaubert@xabbuh@dosten@fabpot@nicolas-grekas@Tobion

[8]ページ先頭

©2009-2025 Movatter.jp