@@ 84-93 (lines=10) @@ | ||
81 | return; |
|
82 | } |
|
83 | ||
84 | if (false === is_array($service)) { |
|
85 | throw new InvalidArgumentException( |
|
86 | sprintf( |
|
87 | 'A service definition must be an array or a string starting with "@" but %s found for service "%s" in %s. Check your YAML syntax.', |
|
88 | gettype($service), |
|
89 | $id, |
|
90 | $fileName |
|
91 | ) |
|
92 | ); |
|
93 | } |
|
94 | ||
95 | if (isset($service['alias'])) { |
|
96 | $aliasName = $service['alias']; |
|
@@ 172-180 (lines=9) @@ | ||
169 | } |
|
170 | ||
171 | $tags = []; |
|
172 | if (false === is_array($service['tags'])) { |
|
173 | throw new InvalidArgumentException( |
|
174 | sprintf( |
|
175 | 'Parameter "tags" must be an array for service "%s" in %s. Check your YAML syntax.', |
|
176 | $id, |
|
177 | $fileName |
|
178 | ) |
|
179 | ); |
|
180 | } |
|
181 | ||
182 | foreach ($service['tags'] as $tag) { |
|
183 | if (false === is_array($tag)) { |
|
@@ 240-248 (lines=9) @@ | ||
237 | return []; |
|
238 | } |
|
239 | ||
240 | if (false === is_array($service['autowiringTypes'])) { |
|
241 | throw new InvalidArgumentException( |
|
242 | sprintf( |
|
243 | 'Parameter "autowiringTypes" must be an array for service "%s" in %s. Check your YAML syntax.', |
|
244 | $id, |
|
245 | $fileName |
|
246 | ) |
|
247 | ); |
|
248 | } |
|
249 | ||
250 | $autowiringTypes = []; |
|
251 | foreach ($service['autowiringTypes'] as $autowiringType) { |