Skip to content

Commit 0f93fac

Browse files
committed
bug symfony#21184 [FrameworkBundle] Remove Response* from classes to compile (nicolas-grekas)
This PR was merged into the 3.2 branch. Discussion ---------- [FrameworkBundle] Remove Response* from classes to compile | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#20560, symfony/demo#411, FriendsOfSymfony/FOSHttpCacheBundle#276 | License | MIT | Doc PR | - When HttpCache is used, Response is loaded first, then the kernel is booted (on cache miss), which triggers the loading of classes.php. Since 3.2 generates a context free classes.php, the Response class is now included there when it was excluded previously. And boom, "Cannot declare class Symfony\Component\HttpFoundation\Response". Commits ------- 9ab5982 [FrameworkBundle] Remove Response* from classes to compile
2 parents e13f89b + 9ab5982 commit 0f93fac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ public function load(array $configs, ContainerBuilder $container)
206206
'Symfony\\Component\\EventDispatcher\\Event',
207207
'Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher',
208208

209-
'Symfony\\Component\\HttpFoundation\\Response',
210-
'Symfony\\Component\\HttpFoundation\\ResponseHeaderBag',
211-
212209
'Symfony\\Component\\HttpKernel\\EventListener\\ResponseListener',
213210
'Symfony\\Component\\HttpKernel\\EventListener\\RouterListener',
214211
'Symfony\\Component\\HttpKernel\\Bundle\\Bundle',

0 commit comments

Comments
 (0)