-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
The middleware does not stop the route as expected. #2291
Comments
Use like this: class HelloMiddleware implements Phalcon\Mvc\Micro\MiddlewareInterface
{
protected $_number = 0;
public function call($app)
{
$app->stop();
}
} |
Thanks for your patch, but the compile failed. I send a PR #2333 to make |
Don't use PR, Only use method stop. |
Method But method |
ghost
closed this as completed
Sep 30, 2014
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have a middleware like this:
I want to make it work:
The
HelloMiddleware
does not stop the route as expected and both the1
and2
are logged.Do you have any idea about why it does not work?
Versions:
Thanks.
The text was updated successfully, but these errors were encountered: