Skip to content
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

[Security] Added AbstractExceptionListener #11103

Closed
wants to merge 3 commits into from
Closed

[Security] Added AbstractExceptionListener #11103

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 11, 2014

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This allows to use a custom implementations of exception listeners.

This allows to use a custom implementations of exception listeners.
*/
public function add(RequestMatcherInterface $requestMatcher = null, array $listeners = array(), ExceptionListener $exceptionListener = null)
public function add(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please keep method declaration on a single line

@ghost
Copy link
Author

ghost commented Jun 12, 2014

Will this get merged?

use Symfony\Component\HttpKernel\KernelEvents;

/**
* Interface that must be implemented by firewall exception listener
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an abstract class, not an interface.

@fabpot
Copy link
Member

fabpot commented Jun 16, 2014

I'm 👎 on this one. The logic in the exception listener is quite complex and I fail to see how you would reimplement something different but still compatible with the default one. So, that's not an extension point I want to expose to the users. But of course, you can still just extend the existing class and implement your logic.

@ghost ghost added Security labels Jun 16, 2014
@ghost
Copy link
Author

ghost commented Jun 16, 2014

I want to send JsonResponse only (without redirects).
If so, I will inherit an existing class.

@ghost ghost closed this Jun 16, 2014
@ghost ghost deleted the firewall-exception-listener-interface branch June 16, 2014 09:45
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants