|
@@ 112-117 (lines=6) @@
|
| 109 |
|
)); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
if (isset($config['resource']) && isset($config['method'])) { |
| 113 |
|
throw new \InvalidArgumentException(sprintf( |
| 114 |
|
'The routing file "%s" must not specify both the "resource" key and the "method" key for "%s". Choose between an import and a route definition.', |
| 115 |
|
$path, $name |
| 116 |
|
)); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
if (!isset($config['resource']) && isset($config['type'])) { |
| 120 |
|
throw new \InvalidArgumentException(sprintf( |
|
@@ 119-124 (lines=6) @@
|
| 116 |
|
)); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
if (!isset($config['resource']) && isset($config['type'])) { |
| 120 |
|
throw new \InvalidArgumentException(sprintf( |
| 121 |
|
'The "type" key for the route definition "%s" in "%s" is unsupported. It is only available for imports in combination with the "resource" key.', |
| 122 |
|
$name, $path |
| 123 |
|
)); |
| 124 |
|
} |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
/** |