8000 bug #52656 [FrameworkBundle] Add TemplateController to the list of al… · symfony/symfony@6f06151 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f06151

Browse files
bug #52656 [FrameworkBundle] Add TemplateController to the list of allowed controllers for fragments (nicolas-grekas)
This PR was merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] Add TemplateController to the list of allowed controllers for fragments | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #52655 | License | MIT Forgotten in #52471 Commits ------- 1f560bc [FrameworkBundle] Add TemplateController to the list of allowed controllers for fragments
2 parents 19c0d9a + 1f560bc commit 6f06151

File tree

1 file changed

+2
-1
lines changed
  • src/Symfony/Bundle/FrameworkBundle/Resources/config

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/web.php

Expand all lines: src/Symfony/Bundle/FrameworkBundle/Resources/config/web.php
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1515
use Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver;
16+
use Symfony\Bundle\FrameworkBundle\Controller\TemplateController;
1617
use Symfony\Component\HttpKernel\Controller\ArgumentResolver;
1718
use Symfony\Component\HttpKernel\Controller\ArgumentResolver\BackedEnumValueResolver;
1819
use Symfony\Component\HttpKernel\Controller\ArgumentResolver\DateTimeValueResolver;
@@ -41,7 +42,7 @@
4142
service('service_container'),
4243
service('logger')->ignoreOnInvalid(),
4344
])
44-
->call('allowControllers', [[AbstractController::class]])
45+
->call('allowControllers', [[AbstractController::class, TemplateController::class]])
4546
->tag('monolog.logger', ['channel' => 'request'])
4647

4748
->set('argument_metadata_factory', ArgumentMetadataFactory::class)

0 commit comments

Comments
 (0)
0