@@ 119-124 (lines=6) @@ | ||
116 | )); |
|
117 | } |
|
118 | ||
119 | if (isset($config['resource']) && isset($config['method'])) { |
|
120 | throw new \InvalidArgumentException(sprintf( |
|
121 | '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.', |
|
122 | $path, $name |
|
123 | )); |
|
124 | } |
|
125 | ||
126 | if (!isset($config['resource']) && isset($config['type'])) { |
|
127 | throw new \InvalidArgumentException(sprintf( |
|
@@ 126-131 (lines=6) @@ | ||
123 | )); |
|
124 | } |
|
125 | ||
126 | if (!isset($config['resource']) && isset($config['type'])) { |
|
127 | throw new \InvalidArgumentException(sprintf( |
|
128 | 'The "type" key for the route definition "%s" in "%s" is unsupported. It is only available for imports in combination with the "resource" key.', |
|
129 | $name, $path |
|
130 | )); |
|
131 | } |
|
132 | } |
|
133 | ||
134 | /** |