D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
psa
/
admin
/
plib
/
vendor
/
jms
/
serializer
/
src
/
EventDispatcher
/
Filename :
EventSubscriberInterface.php
back
Copy
<?php declare(strict_types=1); namespace JMS\Serializer\EventDispatcher; interface EventSubscriberInterface { /** * Returns the events to which this class has subscribed. * * Return format: * array( * array('event' => 'the-event-name', 'method' => 'onEventName', 'class' => 'some-class', 'format' => 'json'), * array(...), * ) * * The class may be omitted if the class wants to subscribe to events of all classes. * Same goes for the format key. * * @return array * * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint */ public static function getSubscribedEvents(); }