Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.6] Allow callable array syntax in route definition #24385

merged 3 commits into from May 31, 2018
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now


style change

  • Loading branch information...
hulkur committed May 30, 2018
commit 06c77a1f6979a0d5e64df444562d0a0ec1b6ff90
@@ -29,7 +29,6 @@ public static function parse($uri, $action)
// as the "uses" property, because there is nothing else we need to do when
// it is available. Otherwise we will need to find it in the action list.
if (is_callable($action)) {
if (\is_array($action)) {
[$class, $method] = $action;
$action = $class.'@'.$method;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.