src/FileLoader/Parser/Yaml/Util/AutowiringTypesParser.php 1 location
|
@@ 35-43 (lines=9) @@
|
| 32 |
|
return []; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
if (false === is_array($service['autowiringTypes'])) { |
| 36 |
|
throw new InvalidArgumentException( |
| 37 |
|
sprintf( |
| 38 |
|
'Parameter "autowiringTypes" must be an array for service "%s" in %s. Check your YAML syntax.', |
| 39 |
|
$id, |
| 40 |
|
$fileName |
| 41 |
|
) |
| 42 |
|
); |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
$autowiringTypes = []; |
| 46 |
|
foreach ($service['autowiringTypes'] as $autowiringType) { |
src/FileLoader/Parser/Yaml/Util/DefinitionParser.php 1 location
|
@@ 53-62 (lines=10) @@
|
| 50 |
|
return; |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
if (false === is_array($service)) { |
| 54 |
|
throw new InvalidArgumentException( |
| 55 |
|
sprintf( |
| 56 |
|
'A service definition must be an array or a string starting with "@" but %s found for service "%s" in %s. Check your YAML syntax.', |
| 57 |
|
gettype($service), |
| 58 |
|
$id, |
| 59 |
|
$fileName |
| 60 |
|
) |
| 61 |
|
); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
$this->serviceParser->parse($container, $id, $service, $fileName); |
| 65 |
|
} |
src/FileLoader/Parser/Yaml/Util/FactoryParser.php 2 locations
|
@@ 61-70 (lines=10) @@
|
| 58 |
|
*/ |
| 59 |
|
private function checkFactory(ServiceInterface $service, $factory, $fileName) |
| 60 |
|
{ |
| 61 |
|
if (false === is_array($factory)) { |
| 62 |
|
throw new InvalidArgumentException( |
| 63 |
|
sprintf( |
| 64 |
|
'Parameter "factory" must be an array for service "%s", but found "%s" instead in %s. Check your YAML syntax.', |
| 65 |
|
$service->getName(), |
| 66 |
|
gettype($factory), |
| 67 |
|
$fileName |
| 68 |
|
) |
| 69 |
|
); |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
if (2 !== count($factory)) { |
| 73 |
|
throw new InvalidArgumentException( |
|
@@ 72-81 (lines=10) @@
|
| 69 |
|
); |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
if (2 !== count($factory)) { |
| 73 |
|
throw new InvalidArgumentException( |
| 74 |
|
sprintf( |
| 75 |
|
'Parameter "factory" expects two parameters for service "%s", but found "%s" instead in %s. Check your YAML syntax.', |
| 76 |
|
$service->getName(), |
| 77 |
|
gettype($factory), |
| 78 |
|
$fileName |
| 79 |
|
) |
| 80 |
|
); |
| 81 |
|
} |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
/** |
src/FileLoader/Parser/Yaml/Util/TagsParser.php 1 location
|
@@ 35-43 (lines=9) @@
|
| 32 |
|
return []; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
if (false === is_array($service['tags'])) { |
| 36 |
|
throw new InvalidArgumentException( |
| 37 |
|
sprintf( |
| 38 |
|
'Parameter "tags" must be an array for service "%s" in %s. Check your YAML syntax.', |
| 39 |
|
$id, |
| 40 |
|
$fileName |
| 41 |
|
) |
| 42 |
|
); |
| 43 |
|
} |
| 44 |
|
$tags = $this->parseTags($id, $service['tags'], $fileName); |
| 45 |
|
|
| 46 |
|
return $tags; |