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
$application->getRequest()->getRoute()
Hello,
In an API based application I would like to get the route called. My API uses the FastRouteRouter.
In my VersionedApiAction::init() method I just did a
VersionedApiAction::init()
var_dump($this->getApplication()->getRequest()->getRoute())
And I get /srv/app/src/Api/TestEndpoint.php:21:null
/srv/app/src/Api/TestEndpoint.php:21:null
Expected result: the route which was used to display the view /srv/app/src/Api/TestEndpoint.php:21:string '/api/v1/test/23' (length=15)
/srv/app/src/Api/TestEndpoint.php:21:string '/api/v1/test/23' (length=15)
The text was updated successfully, but these errors were encountered:
gauthier
No branches or pull requests
Hello,
In an API based application I would like to get the route called.
My API uses the FastRouteRouter.
In my
VersionedApiAction::init()
method I just did aAnd I get
/srv/app/src/Api/TestEndpoint.php:21:null
Expected result: the route which was used to display the view
/srv/app/src/Api/TestEndpoint.php:21:string '/api/v1/test/23' (length=15)
The text was updated successfully, but these errors were encountered: