for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Symnedi\EventDispatcher\Tests\DI\EventDispatcherExtensionSource;
use Exception;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
final class SomeEventSubscriber implements EventSubscriberInterface
{
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents()
return ['subscriber.event' => 'methodName'];
}
public function methodName()
throw new Exception('Event was dispatched in subscriber.');