File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,8 @@ a relative or absolute path to the imported file:
80
80
# config/services.yaml
81
81
imports :
82
82
- { resource: services/mailer.yaml }
83
-
83
+ # If you want to import a whole directory:
84
+ - { resource: services/ }
84
85
services :
85
86
_defaults :
86
87
autowire : true
@@ -103,6 +104,8 @@ a relative or absolute path to the imported file:
103
104
104
105
<imports >
105
106
<import resource =" services/mailer.xml" />
107
+ <!-- If you want to import a whole directory: -->
108
+ <import resource =" services/" />
106
109
</imports >
107
110
108
111
<services >
@@ -122,6 +125,8 @@ a relative or absolute path to the imported file:
122
125
123
126
return function(ContainerConfigurator $configurator) {
124
127
$configurator->import('services/mailer.php');
128
+ // If you want to import a whole directory:
129
+ $configurator->import('services/');
125
130
126
131
$services = $configurator->services()
127
132
->defaults()
You can’t perform that action at this time.
0 commit comments