@@ -1153,7 +1153,7 @@ the common configuration using options when importing the routes.
1153
1153
1154
1154
# config/routes/annotations.yaml
1155
1155
controllers :
1156
- resource : ' ../src/Controller/'
1156
+ resource : ' ../../ src/Controller/'
1157
1157
type : annotation
1158
1158
# this is added to the beginning of all imported route URLs
1159
1159
prefix : ' /blog'
@@ -1166,7 +1166,7 @@ the common configuration using options when importing the routes.
1166
1166
# Uncomment this option to make that URL "/blog" instead
1167
1167
# trailing_slash_on_root: false
1168
1168
# you can optionally exclude some files/subdirectories when loading annotations
1169
- # exclude: '../src/Controller/{DebugEmailController}.php'
1169
+ # exclude: '../../ src/Controller/{DebugEmailController}.php'
1170
1170
1171
1171
.. code-block :: xml
1172
1172
@@ -1182,18 +1182,18 @@ the common configuration using options when importing the routes.
1182
1182
the 'name-prefix' value is added to the beginning of all imported route names
1183
1183
the 'exclude' option defines the files or subdirectories ignored when loading annotations
1184
1184
-->
1185
- <import resource =" ../src/Controller/"
1185
+ <import resource =" ../../ src/Controller/"
1186
1186
type =" annotation"
1187
1187
prefix =" /blog"
1188
1188
name-prefix =" blog_"
1189
- exclude =" ../src/Controller/{DebugEmailController}.php" >
1189
+ exclude =" ../../ src/Controller/{DebugEmailController}.php" >
1190
1190
<!-- these requirements are added to all imported routes -->
1191
1191
<requirement key =" _locale" >en|es|fr</requirement >
1192
1192
</import >
1193
1193
1194
1194
<!-- An imported route with an empty URL will become "/blog/"
1195
1195
Uncomment this option to make that URL "/blog" instead -->
1196
- <import resource =" ../src/Controller/" type =" annotation"
1196
+ <import resource =" ../../ src/Controller/" type =" annotation"
1197
1197
prefix =" /blog"
1198
1198
trailing-slash-on-root =" false" >
1199
1199
<!-- ... -->
@@ -1208,7 +1208,7 @@ the common configuration using options when importing the routes.
1208
1208
return function (RoutingConfigurator $routes) {
1209
1209
// use the optional fifth argument of import() to exclude some files
1210
1210
// or subdirectories when loading annotations
1211
- $routes->import('../src/Controller/', 'annotation')
1211
+ $routes->import('../../ src/Controller/', 'annotation')
1212
1212
// this is added to the beginning of all imported route URLs
1213
1213
->prefix('/blog')
1214
1214
// An imported route with an empty URL will become "/blog/"
@@ -1716,7 +1716,7 @@ with a locale. This can be done by defining a different prefix for each locale
1716
1716
1717
1717
# config/routes/annotations.yaml
1718
1718
controllers :
1719
- resource : ' ../src/Controller/'
1719
+ resource : ' ../../ src/Controller/'
1720
1720
type : annotation
1721
1721
prefix :
1722
1722
en : ' ' # don't prefix URLs for English, the default locale
@@ -1731,7 +1731,7 @@ with a locale. This can be done by defining a different prefix for each locale
1731
1731
xsi : schemaLocation =" http://symfony.com/schema/routing
1732
1732
https://symfony.com/schema/routing/routing-1.0.xsd" >
1733
1733
1734
- <import resource =" ../src/Controller/" type =" annotation" >
1734
+ <import resource =" ../../ src/Controller/" type =" annotation" >
1735
1735
<!-- don't prefix URLs for English, the default locale -->
1736
1736
<prefix locale =" en" ></prefix >
1737
1737
<prefix locale =" nl" >/nl</prefix >
@@ -1744,7 +1744,7 @@ with a locale. This can be done by defining a different prefix for each locale
1744
1744
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1745
1745
1746
1746
return function (RoutingConfigurator $routes) {
1747
- $routes->import('../src/Controller/', 'annotation')
1747
+ $routes->import('../../ src/Controller/', 'annotation')
1748
1748
->prefix([
1749
1749
// don't prefix URLs for English, the default locale
1750
1750
'en' => '',
@@ -2135,7 +2135,7 @@ defined as annotations:
2135
2135
2136
2136
# config/routes/annotations.yaml
2137
2137
controllers :
2138
- resource : ' ../src/Controller/'
2138
+ resource : ' ../../ src/Controller/'
2139
2139
type : annotation
2140
2140
defaults :
2141
2141
schemes : [https]
@@ -2149,7 +2149,7 @@ defined as annotations:
2149
2149
xsi : schemaLocation =" http://symfony.com/schema/routing
2150
2150
https://symfony.com/schema/routing/routing-1.0.xsd" >
2151
2151
2152
- <import resource =" ../src/Controller/" type =" annotation" >
2152
+ <import resource =" ../../ src/Controller/" type =" annotation" >
2153
2153
<default key =" schemes" >HTTPS</default >
2154
2154
</import >
2155
2155
</routes >
@@ -2160,7 +2160,7 @@ defined as annotations:
2160
2160
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
2161
2161
2162
2162
return function (RoutingConfigurator $routes) {
2163
- $routes->import('../src/Controller/', 'annotation')
2163
+ $routes->import('../../ src/Controller/', 'annotation')
2164
2164
->schemes(['https'])
2165
2165
;
2166
2166
};
0 commit comments