You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (isset($config['resource']) && isset($config['path'])) {
212
-
thrownew \InvalidArgumentException(sprintf(
213
-
'The routing file "%s" must not specify both the "resource" key and the "path" key for "%s". Choose between an import and a route definition.',
214
-
$path, $name
215
-
));
209
+
thrownew \InvalidArgumentException(sprintf('The routing file "%s" must not specify both the "resource" key and the "path" key for "%s". Choose between an import and a route definition.', $path, $name));
216
210
}
217
211
if (!isset($config['resource']) && isset($config['type'])) {
218
-
thrownew \InvalidArgumentException(sprintf(
219
-
'The "type" key for the route definition "%s" in "%s" is unsupported. It is only available for imports in combination with the "resource" key.',
220
-
$name, $path
221
-
));
212
+
thrownew \InvalidArgumentException(sprintf('The "type" key for the route definition "%s" in "%s" is unsupported. It is only available for imports in combination with the "resource" key.', $name, $path));
222
213
}
223
214
if (!isset($config['resource']) && !isset($config['path'])) {
224
-
thrownew \InvalidArgumentException(sprintf(
225
-
'You must define a "path" for the route "%s" in file "%s".',
226
-
$name, $path
227
-
));
215
+
thrownew \InvalidArgumentException(sprintf('You must define a "path" for the route "%s" in file "%s".', $name, $path));
228
216
}
229
217
if (isset($config['controller']) && isset($config['defaults']['_controller'])) {
230
218
thrownew \InvalidArgumentException(sprintf('The routing file "%s" must not specify both the "controller" key and the defaults key "_controller" for "%s".', $path, $name));
0 commit comments