[Routing] tuned exception message
This commit is contained in:
parent
3fd50ea4e6
commit
e4eee05b06
@ -139,7 +139,7 @@ class YamlFileLoader extends FileLoader
|
|||||||
foreach ($config as $key => $value) {
|
foreach ($config as $key => $value) {
|
||||||
if (!in_array($key, self::$availableKeys)) {
|
if (!in_array($key, self::$availableKeys)) {
|
||||||
throw new \InvalidArgumentException(sprintf(
|
throw new \InvalidArgumentException(sprintf(
|
||||||
'Unsupported config key given: "%s". Expected one of the (%s).',
|
'Yaml routing loader does not support given key: "%s". Expected one of the (%s).',
|
||||||
$key, implode(', ', self::$availableKeys)
|
$key, implode(', ', self::$availableKeys)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user