Created
March 11, 2016 22:02
-
-
Save ahilles107/ad24edf1128e4d31d50e to your computer and use it in GitHub Desktop.
ViewResponseListener return false asap when request is not covered by zone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function onKernelView(GetResponseForControllerResultEvent $event) | |
{ | |
$request = $event->getRequest(); | |
if (!$request->attributes->get(FOSRestBundle::ZONE_ATTRIBUTE, true)) { | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment