Skip to content

Commit ddc05a6

Browse files
committed
minor #12692 Updated the location of the errors.xml file (metalmini)
This PR was submitted for the 5.0 branch but it was squashed and merged into the 4.4 branch instead (closes #12692). Discussion ---------- Updated the location of the errors.xml file <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap 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 `master` for features of unreleased versions). --> Commits ------- 6d661f0 Updated the location of the errors.xml file
2 parents 1ca59e0 + 6d661f0 commit ddc05a6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

controller/error_pages.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,30 +157,30 @@ automatically when installing Twig support):
157157

158158
.. code-block:: yaml
159159
160-
# config/routes/dev/twig.yaml
160+
# config/routes/dev/framework.yaml
161161
_errors:
162-
resource: '@TwigBundle/Resources/config/routing/errors.xml'
162+
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
163163
prefix: /_error
164164
165165
.. code-block:: xml
166166
167-
<!-- config/routes/dev/twig.xml -->
167+
<!-- config/routes/dev/framework.xml -->
168168
<?xml version="1.0" encoding="UTF-8" ?>
169169
<routes xmlns="http://symfony.com/schema/routing"
170170
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
171171
xsi:schemaLocation="http://symfony.com/schema/routing
172172
https://symfony.com/schema/routing/routing-1.0.xsd">
173173
174-
<import resource="@TwigBundle/Resources/config/routing/errors.xml" prefix="/_error"/>
174+
<import resource="@FrameworkBundle/Resources/config/routing/errors.xml" prefix="/_error"/>
175175
</routes>
176176
177177
.. code-block:: php
178178
179-
// config/routes/dev/twig.php
179+
// config/routes/dev/framework.php
180180
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
181181
182182
return function (RoutingConfigurator $routes) {
183-
$routes->import('@TwigBundle/Resources/config/routing/errors.xml')
183+
$routes->import('@FrameworkBundle/Resources/config/routing/errors.xml')
184184
->prefix('/_error')
185185
;
186186
};

0 commit comments

Comments
 (0)