|
@@ 309-311 (lines=3) @@
|
| 306 |
|
|
| 307 |
|
// nette |
| 308 |
|
if (preg_match('#^(\S+)\s+<\s+(\S+)\z#', $id, $matches)) { |
| 309 |
|
if (isset($service['parent']) && $matches[2] !== $service['parent']) { |
| 310 |
|
throw new InvalidArgumentException(sprintf('Two parent services "%s" and "%s" are defined for service "%s" in "%s". Check your NEON syntax.', $service['parent'], $matches[2], $matches[1], $file)); |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
$id = $matches[1]; |
| 314 |
|
$parent = $matches[2]; |
|
@@ 514-520 (lines=7) @@
|
| 511 |
|
private function processAutowire($id, array &$service, Definition $definition, $file) |
| 512 |
|
{ |
| 513 |
|
// nette |
| 514 |
|
if (isset($service['autowired'])) { |
| 515 |
|
if (isset($service['autowire']) && $service['autowire'] !== $service['autowired']) { |
| 516 |
|
throw new InvalidArgumentException(sprintf('Contradictory definition of autowiring for service "%s" in "%s". Check you NEON syntax.', $id, $file)); |
| 517 |
|
} |
| 518 |
|
|
| 519 |
|
$service['autowire'] = $service['autowired']; |
| 520 |
|
} |
| 521 |
|
|
| 522 |
|
if (isset($service['autowire'])) { |
| 523 |
|
// nette |