Skip to content

Commit 9400562

Browse files
committed
Allow non-callable arrays as controllers
1 parent 75cbbf1 commit 9400562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loader/Configurator/Traits/RouteTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ final public function methods(array $methods): self
130130
*
131131
* @return $this
132132
*/
133-
final public function controller(callable|string $controller): self
133+
final public function controller(callable|string|array $controller): self
134134
{
135135
$this->route->addDefaults(['_controller' => $controller]);
136136

0 commit comments

Comments
 (0)