We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Laminas it is possible to set the action route variable, which acts as a "catch-all" route for the method in the controller.
The following controller is given:
<?php namespace Module\Controller; use Laminas\Mvc\Controller\AbstractActionController; use Symfony\Component\Routing\Attribute\Route; #[Route('/api/{action}', name: 'my_wildcard_route')] class MyController extends AbstractActionController { public function myAction() { //Your action code goes here... } public function userListAction() { //Your action code goes here... } }
/api/my
MyController::myAction
/api/userList
/api/userlist
/api/user-list
/api/user_list
The text was updated successfully, but these errors were encountered:
nusphere
No branches or pull requests
Feature Request
In Laminas it is possible to set the action route variable, which acts as a "catch-all" route for the method in the controller.
Summary
The following controller is given:
/api/my
should callMyController::myAction
MyController::myAction
:/api/userList
/api/userlist
/api/user-list
/api/user_list
The text was updated successfully, but these errors were encountered: