Skip to content

Commit 365cf71

Browse files
committed
minor #13132 Fix some paths (gbere)
This PR was merged into the 4.4 branch. Discussion ---------- Fix some paths <!-- 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 ------- 3c5a889 Fix some paths
2 parents a65abca + 3c5a889 commit 365cf71

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

routing.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ the common configuration using options when importing the routes.
11621162
11631163
# config/routes/annotations.yaml
11641164
controllers:
1165-
resource: '../src/Controller/'
1165+
resource: '../../src/Controller/'
11661166
type: annotation
11671167
# this is added to the beginning of all imported route URLs
11681168
prefix: '/blog'
@@ -1175,7 +1175,7 @@ the common configuration using options when importing the routes.
11751175
# Uncomment this option to make that URL "/blog" instead
11761176
# trailing_slash_on_root: false
11771177
# you can optionally exclude some files/subdirectories when loading annotations
1178-
# exclude: '../src/Controller/{DebugEmailController}.php'
1178+
# exclude: '../../src/Controller/{DebugEmailController}.php'
11791179
11801180
.. code-block:: xml
11811181
@@ -1191,18 +1191,18 @@ the common configuration using options when importing the routes.
11911191
the 'name-prefix' value is added to the beginning of all imported route names
11921192
the 'exclude' option defines the files or subdirectories ignored when loading annotations
11931193
-->
1194-
<import resource="../src/Controller/"
1194+
<import resource="../../src/Controller/"
11951195
type="annotation"
11961196
prefix="/blog"
11971197
name-prefix="blog_"
1198-
exclude="../src/Controller/{DebugEmailController}.php">
1198+
exclude="../../src/Controller/{DebugEmailController}.php">
11991199
<!-- these requirements are added to all imported routes -->
12001200
<requirement key="_locale">en|es|fr</requirement>
12011201
</import>
12021202
12031203
<!-- An imported route with an empty URL will become "/blog/"
12041204
Uncomment this option to make that URL "/blog" instead -->
1205-
<import resource="../src/Controller/" type="annotation"
1205+
<import resource="../../src/Controller/" type="annotation"
12061206
prefix="/blog"
12071207
trailing-slash-on-root="false">
12081208
<!-- ... -->
@@ -1217,7 +1217,7 @@ the common configuration using options when importing the routes.
12171217
return function (RoutingConfigurator $routes) {
12181218
// use the optional fifth argument of import() to exclude some files
12191219
// or subdirectories when loading annotations
1220-
$routes->import('../src/Controller/', 'annotation')
1220+
$routes->import('../../src/Controller/', 'annotation')
12211221
// this is added to the beginning of all imported route URLs
12221222
->prefix('/blog')
12231223
// An imported route with an empty URL will become "/blog/"
@@ -1737,7 +1737,7 @@ with a locale. This can be done by defining a different prefix for each locale
17371737
17381738
# config/routes/annotations.yaml
17391739
controllers:
1740-
resource: '../src/Controller/'
1740+
resource: '../../src/Controller/'
17411741
type: annotation
17421742
prefix:
17431743
en: '' # don't prefix URLs for English, the default locale
@@ -1752,7 +1752,7 @@ with a locale. This can be done by defining a different prefix for each locale
17521752
xsi:schemaLocation="http://symfony.com/schema/routing
17531753
https://symfony.com/schema/routing/routing-1.0.xsd">
17541754
1755-
<import resource="../src/Controller/" type="annotation">
1755+
<import resource="../../src/Controller/" type="annotation">
17561756
<!-- don't prefix URLs for English, the default locale -->
17571757
<prefix locale="en"></prefix>
17581758
<prefix locale="nl">/nl</prefix>
@@ -1765,7 +1765,7 @@ with a locale. This can be done by defining a different prefix for each locale
17651765
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
17661766
17671767
return function (RoutingConfigurator $routes) {
1768-
$routes->import('../src/Controller/', 'annotation')
1768+
$routes->import('../../src/Controller/', 'annotation')
17691769
->prefix([
17701770
// don't prefix URLs for English, the default locale
17711771
'en' => '',
@@ -2156,7 +2156,7 @@ defined as annotations:
21562156
21572157
# config/routes/annotations.yaml
21582158
controllers:
2159-
resource: '../src/Controller/'
2159+
resource: '../../src/Controller/'
21602160
type: annotation
21612161
defaults:
21622162
schemes: [https]
@@ -2170,7 +2170,7 @@ defined as annotations:
21702170
xsi:schemaLocation="http://symfony.com/schema/routing
21712171
https://symfony.com/schema/routing/routing-1.0.xsd">
21722172
2173-
<import resource="../src/Controller/" type="annotation">
2173+
<import resource="../../src/Controller/" type="annotation">
21742174
<default key="schemes">HTTPS</default>
21752175
</import>
21762176
</routes>
@@ -2181,7 +2181,7 @@ defined as annotations:
21812181
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
21822182
21832183
return function (RoutingConfigurator $routes) {
2184-
$routes->import('../src/Controller/', 'annotation')
2184+
$routes->import('../../src/Controller/', 'annotation')
21852185
->schemes(['https'])
21862186
;
21872187
};

0 commit comments

Comments
 (0)