Created
October 31, 2019 23:35
-
-
Save ismail1432/caea84cee16e0b140dbd5324527e3831 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 | |
use Symfony\Component\EventDispatcher\EventDispatcherInterface; | |
class BazController | |
{ | |
/** | |
*@Route("/show") | |
*/ | |
public function show(EventDispatcherInterface $eventDispatcher) | |
{ | |
// Dispatch the event | |
// all listeners with DisableListenerInterface call the `disable` method | |
$eventDispatcher->dispatch(DisableListenerEvent::NAME); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment