|
@@ 143-148 (lines=6) @@
|
| 140 |
|
)); |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
if (isset($config['resource']) && isset($config['method'])) { |
| 144 |
|
throw new \InvalidArgumentException(sprintf( |
| 145 |
|
'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.', |
| 146 |
|
$path, $name |
| 147 |
|
)); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
if (!isset($config['resource']) && isset($config['type'])) { |
| 151 |
|
throw new \InvalidArgumentException(sprintf( |
|
@@ 150-155 (lines=6) @@
|
| 147 |
|
)); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
if (!isset($config['resource']) && isset($config['type'])) { |
| 151 |
|
throw new \InvalidArgumentException(sprintf( |
| 152 |
|
'The "type" key for the route definition "%s" in "%s" is unsupported. It is only available for imports in combination with the "resource" key.', |
| 153 |
|
$name, $path |
| 154 |
|
)); |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |