[Routing] tuned exception message

This commit is contained in:
everzet 2011-03-19 12:58:31 +02:00
parent 3fd50ea4e6
commit e4eee05b06

View File

@ -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)
)); ));
} }