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