@@ 296-298 (lines=3) @@ | ||
293 | ||
294 | // nette |
|
295 | if (preg_match('#^(\S+)\s+<\s+(\S+)\z#', $id, $matches)) { |
|
296 | if (isset($service['parent']) && $matches[2] !== $service['parent']) { |
|
297 | 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)); |
|
298 | } |
|
299 | ||
300 | $id = $matches[1]; |
|
301 | $parent = $matches[2]; |
|
@@ 503-509 (lines=7) @@ | ||
500 | private function processAutowire($id, array &$service, Definition $definition, $file) |
|
501 | { |
|
502 | // nette |
|
503 | if (isset($service['autowired'])) { |
|
504 | if (isset($service['autowire']) && $service['autowire'] !== $service['autowired']) { |
|
505 | throw new InvalidArgumentException(sprintf('Contradictory definition of autowiring for service "%s" in "%s". Check you NEON syntax.', $id, $file)); |
|
506 | } |
|
507 | ||
508 | $service['autowire'] = $service['autowired']; |
|
509 | } |
|
510 | ||
511 | if (isset($service['autowire'])) { |
|
512 | // nette |