Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdf1d72

Browse files
committed
[FrameworkBundle] fixed requirement of the _controller palceholder for the proxy route (closes #6783)
A controller name can be a service and service names can contain dots.
1 parent 696900e commit cdf1d72

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/routing/proxy.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
66

7-
<route id="_proxy" pattern="/_proxy/{_controller}.{_format}" />
7+
<route id="_proxy" pattern="/_proxy/controller/{_controller}/format/{_format}">
8+
<requirement key="_controller">.+</requirement>
9+
</route>
810
</routes>

0 commit comments

Comments
 (0)