Skip to content

Commit a8bb802

Browse files
committed
minor #16854 Fix development testing examples (gitomato)
This PR was merged into the 5.4 branch. Discussion ---------- Fix development testing examples <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 3d1b667 Fix development testing examples
2 parents 797e5d0 + 3d1b667 commit a8bb802

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)