|
@@ 152-154 (lines=3) @@
|
| 149 |
|
return new Reference(substr($service, 1)); |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
if (!is_array($service)) { |
| 153 |
|
throw new InvalidArgumentException(sprintf('A service definition must be an array or a string starting with "@" but %s found for service "%s" in %s. Check your YAML syntax.', gettype($service), $id, $this->fileName)); |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
if (isset($service['alias'])) { |
| 157 |
|
if (isset($service['public'])) { |
|
@@ 188-190 (lines=3) @@
|
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
if (isset($service['calls'])) { |
| 188 |
|
if (!is_array($service['calls'])) { |
| 189 |
|
throw new InvalidArgumentException(sprintf('Parameter "calls" must be an array for service "%s" in %s. Check your YAML syntax.', $id, $this->fileName)); |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
foreach ($service['calls'] as $call) { |
| 193 |
|
if (isset($call['method'])) { |