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

Commitea19044

Browse files
committed
merged branch fabpot/request-scope (PR #7457)
This PR was merged into the master branch.Discussion----------moved the request scope creation to the ContainerAwareHttpKernel class| Q | A| ------------- | ---| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | n/a| License | MIT| Doc PR |symfony/symfony-docs#2343While updating the scope documentation, I realized that the request scope was created in the FrameworkBundle while the HttpKernel that manages it was in the HttpKernel component. So, this PR makes things more consistent.Commits-------cec98c1 [DependencyInjection] fixed PHP notice when the scope is not defined550df5a moved the request scope creation to the ContainerAwareHttpKernel class
2 parents23d48a6 +e85638b commitea19044

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

‎FrameworkBundle.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
useSymfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FragmentRendererPass;
2929
useSymfony\Component\DependencyInjection\ContainerBuilder;
3030
useSymfony\Component\DependencyInjection\Compiler\PassConfig;
31-
useSymfony\Component\DependencyInjection\Scope;
3231
useSymfony\Component\HttpFoundation\Request;
3332
useSymfony\Component\HttpKernel\Bundle\Bundle;
3433

@@ -54,8 +53,6 @@ public function build(ContainerBuilder $container)
5453
{
5554
parent::build($container);
5655

57-
$container->addScope(newScope('request'));
58-
5956
$container->addCompilerPass(newRoutingResolverPass());
6057
$container->addCompilerPass(newProfilerPass());
6158
$container->addCompilerPass(newRegisterKernelListenersPass(), PassConfig::TYPE_AFTER_REMOVING);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp