Created
October 31, 2019 22:58
-
-
Save ismail1432/6fbd88a2961b8dba9258dc4b8bc989e4 to your computer and use it in GitHub Desktop.
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
| <?php | |
| class FooRequestListener | |
| { | |
| private $enabled = true; | |
| // .. | |
| public function supports(RequestEvent $event): bool | |
| { | |
| return $event->isMasterRequest() && $this->enabled; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment