Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.7] Tuple notation for UrlGenerator actions #24738
This PR allows you to use a tuple notation for generating action urls. This is especially useful when importing a controller class.
I think it'd make sense to do this in the router too, but that's a but trickier because we'd need to detect if it's an associative array (for
@sisve The exact name doesn't really matter since it doesn't exist in the code, just this PR title :) "Callable syntax" makes more sense though, if it ends up in the docs I'll write it like that.
@devcircus Thanks for mentioning, will hold off on that then.
Added to my todo list, I'll send a docs PR later this week