|
@@ 215-220 (lines=6) @@
|
| 212 |
|
$path, $name |
| 213 |
|
)); |
| 214 |
|
} |
| 215 |
|
if ( ! isset($config['resource']) && isset($config['type'])) { |
| 216 |
|
throw new InvalidArgumentException(sprintf( |
| 217 |
|
'The "type" key for the route definition "%s" in "%s" is unsupported. It is only available for imports in combination with the "resource" key.', |
| 218 |
|
$name, $path |
| 219 |
|
)); |
| 220 |
|
} |
| 221 |
|
if ( ! isset($config['resource']) && ! isset($config['path']) && ! isset($config['locales'])) { |
| 222 |
|
throw new InvalidArgumentException(sprintf( |
| 223 |
|
'You must define a "path" or "locales" for the route "%s" in file "%s".', |
|
@@ 221-226 (lines=6) @@
|
| 218 |
|
$name, $path |
| 219 |
|
)); |
| 220 |
|
} |
| 221 |
|
if ( ! isset($config['resource']) && ! isset($config['path']) && ! isset($config['locales'])) { |
| 222 |
|
throw new InvalidArgumentException(sprintf( |
| 223 |
|
'You must define a "path" or "locales" for the route "%s" in file "%s".', |
| 224 |
|
$name, $path |
| 225 |
|
)); |
| 226 |
|
} |
| 227 |
|
if (isset($config['controller']) && isset($config['defaults']['_controller'])) { |
| 228 |
|
throw new InvalidArgumentException(sprintf('The routing file "%s" must not specify both the "controller" key and the defaults key "_controller" for "%s".', $path, $name)); |
| 229 |
|
} |