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
EZP-29297: 404 error pages for hidden locations should be tagged #69
Conversation
a4e2ef8
to
e4f25df
Compare
$exception = $event->getException(); | ||
|
||
$response = $this->exceptionController->showAction($event->getRequest(), FlattenException::create($exception)); | ||
$this->responseTagger->tag($this->responseConfigurator, $response, $exception->getLocation()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please rebase this on top of #67 so you don't need to create response
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As in this will also avoid you having to inject twig.controller.exception right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both correct. Thanks to #67 the solution has been significantly simplified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it passes ;) (EDIT: It depends on kernel PR to pass)
Control question: does the feature require new kernel or just the tests? If it's the former one then this line needs to be changed to |
@alongosz this https://github.com/ezsystems/ezplatform-http-cache/pull/69/files#diff-27a7b10b0921b701f0f9be7a6081bcecR18 spec depends on If we really want to make this tests pass, then I would need to change the line which you've mentioned to something like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, if it's just a spec, then this is fine as it is.
@kmadejski can you try to skip this if class is missing? |
a53be6c
to
e6b14b6
Compare
0.7
)These changes are related to: ezsystems/ezpublish-kernel#2350