@@ -1162,7 +1162,7 @@ the common configuration using options when importing the routes.
1162
1162
1163
1163
# config/routes/annotations.yaml
1164
1164
controllers :
1165
- resource : ' ../src/Controller/'
1165
+ resource : ' ../../ src/Controller/'
1166
1166
type : annotation
1167
1167
# this is added to the beginning of all imported route URLs
1168
1168
prefix : ' /blog'
@@ -1175,7 +1175,7 @@ the common configuration using options when importing the routes.
1175
1175
# Uncomment this option to make that URL "/blog" instead
1176
1176
# trailing_slash_on_root: false
1177
1177
# you can optionally exclude some files/subdirectories when loading annotations
1178
- # exclude: '../src/Controller/{DebugEmailController}.php'
1178
+ # exclude: '../../ src/Controller/{DebugEmailController}.php'
1179
1179
1180
1180
.. code-block :: xml
1181
1181
@@ -1191,18 +1191,18 @@ the common configuration using options when importing the routes.
1191
1191
the 'name-prefix' value is added to the beginning of all imported route names
1192
1192
the 'exclude' option defines the files or subdirectories ignored when loading annotations
1193
1193
-->
1194
- <import resource =" ../src/Controller/"
1194
+ <import resource =" ../../ src/Controller/"
1195
1195
type =" annotation"
1196
1196
prefix =" /blog"
1197
1197
name-prefix =" blog_"
1198
- exclude =" ../src/Controller/{DebugEmailController}.php" >
1198
+ exclude =" ../../ src/Controller/{DebugEmailController}.php" >
1199
1199
<!-- these requirements are added to all imported routes -->
1200
1200
<requirement key =" _locale" >en|es|fr</requirement >
1201
1201
</import >
1202
1202
1203
1203
<!-- An imported route with an empty URL will become "/blog/"
1204
1204
Uncomment this option to make that URL "/blog" instead -->
1205
- <import resource =" ../src/Controller/" type =" annotation"
1205
+ <import resource =" ../../ src/Controller/" type =" annotation"
1206
1206
prefix =" /blog"
1207
1207
trailing-slash-on-root =" false" >
1208
1208
<!-- ... -->
@@ -1217,7 +1217,7 @@ the common configuration using options when importing the routes.
1217
1217
return function (RoutingConfigurator $routes) {
1218
1218
// use the optional fifth argument of import() to exclude some files
1219
1219
// or subdirectories when loading annotations
1220
- $routes->import('../src/Controller/', 'annotation')
1220
+ $routes->import('../../ src/Controller/', 'annotation')
1221
1221
// this is added to the beginning of all imported route URLs
1222
1222
->prefix('/blog')
1223
1223
// 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
1737
1737
1738
1738
# config/routes/annotations.yaml
1739
1739
controllers :
1740
- resource : ' ../src/Controller/'
1740
+ resource : ' ../../ src/Controller/'
1741
1741
type : annotation
1742
1742
prefix :
1743
1743
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
1752
1752
xsi : schemaLocation =" http://symfony.com/schema/routing
1753
1753
https://symfony.com/schema/routing/routing-1.0.xsd" >
1754
1754
1755
- <import resource =" ../src/Controller/" type =" annotation" >
1755
+ <import resource =" ../../ src/Controller/" type =" annotation" >
1756
1756
<!-- don't prefix URLs for English, the default locale -->
1757
1757
<prefix locale =" en" ></prefix >
1758
1758
<prefix locale =" nl" >/nl</prefix >
@@ -1765,7 +1765,7 @@ with a locale. This can be done by defining a different prefix for each locale
1765
1765
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1766
1766
1767
1767
return function (RoutingConfigurator $routes) {
1768
- $routes->import('../src/Controller/', 'annotation')
1768
+ $routes->import('../../ src/Controller/', 'annotation')
1769
1769
->prefix([
1770
1770
// don't prefix URLs for English, the default locale
1771
1771
'en' => '',
@@ -2156,7 +2156,7 @@ defined as annotations:
2156
2156
2157
2157
# config/routes/annotations.yaml
2158
2158
controllers :
2159
- resource : ' ../src/Controller/'
2159
+ resource : ' ../../ src/Controller/'
2160
2160
type : annotation
2161
2161
defaults :
2162
2162
schemes : [https]
@@ -2170,7 +2170,7 @@ defined as annotations:
2170
2170
xsi : schemaLocation =" http://symfony.com/schema/routing
2171
2171
https://symfony.com/schema/routing/routing-1.0.xsd" >
2172
2172
2173
- <import resource =" ../src/Controller/" type =" annotation" >
2173
+ <import resource =" ../../ src/Controller/" type =" annotation" >
2174
2174
<default key =" schemes" >HTTPS</default >
2175
2175
</import >
2176
2176
</routes >
@@ -2181,7 +2181,7 @@ defined as annotations:
2181
2181
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
2182
2182
2183
2183
return function (RoutingConfigurator $routes) {
2184
- $routes->import('../src/Controller/', 'annotation')
2184
+ $routes->import('../../ src/Controller/', 'annotation')
2185
2185
->schemes(['https'])
2186
2186
;
2187
2187
};
0 commit comments