Normalize route configuration.
array $config A resource config:
array
InvalidArgumentException if one of the provided config keys is not supported
private function normalizeRouteConfig(array $config) {
foreach ($config as $key => $value) {
if (!in_array($key, self::$availableKeys)) {
throw new \InvalidArgumentException(sprintf('Yaml routing loader does not support given key: "%s". Expected one of the (%s).', $key, implode(', ', self::$availableKeys)));
}
}
return $config;
}