Skip to content

Commit 3d1b667

Browse files
authored
Fix development testing examples
1 parent f9e0b98 commit 3d1b667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller/error_pages.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ automatically when installing ``symfony/framework-bundle``):
170170
xsi:schemaLocation="http://symfony.com/schema/routing
171171
https://symfony.com/schema/routing/routing-1.0.xsd">
172172
173-
<when env="prod">
173+
<when env="dev">
174174
<import resource="@FrameworkBundle/Resources/config/routing/errors.xml" prefix="/_error"/>
175175
</when>
176176
</routes>
@@ -181,7 +181,7 @@ automatically when installing ``symfony/framework-bundle``):
181181
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
182182
183183
return function (RoutingConfigurator $routes) {
184-
if ('dev' === $container->env()) {
184+
if ('dev' === $routes->env()) {
185185
$routes->import('@FrameworkBundle/Resources/config/routing/errors.xml')
186186
->prefix('/_error')
187187
;

0 commit comments

Comments
 (0)