12345678910111213141516171819202122 |
- <?php
- namespace JMS\SerializerBundle\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
- */
- public static function getSubscribedEvents();
- }
|