simple-php-router
simple-php-router copied to clipboard
About setRewriteCallback
Hello.
I am using throw new NotFoundHttpException(); within each route to raise an exception.
However, I am having trouble with the Page not found string not being output even though I have set setRewriteCallback.
I have created a code to reproduce this based on the demo project.
Can you tell me what the cause is?
The reproduction method is as follows.
- Set up a demo project.
git clone https://github.com/riku22/simple-router-demo cd simple-router-demo git checkout rewrite_callback_test cd public php -S localhost:8080 - Open
http://localhost:8080/users. - It is expected that
Page not foundwill be output, but nothing will be output.
I would appreciate any hints.
Very truly yours.
Hello,
Thank you for reporting this issue. I found the issue and created the PR #609. Now we have to wait for @skipperbent to merge.
~ Marius