Chris@0: . Chris@0: */ Chris@0: Chris@0: namespace Doctrine\Common; Chris@0: Chris@0: /** Chris@0: * An EventSubscriber knows himself what events he is interested in. Chris@0: * If an EventSubscriber is added to an EventManager, the manager invokes Chris@0: * {@link getSubscribedEvents} and registers the subscriber as a listener for all Chris@0: * returned events. Chris@0: * Chris@0: * @link www.doctrine-project.org Chris@0: * @since 2.0 Chris@0: * @author Guilherme Blanco Chris@0: * @author Jonathan Wage Chris@0: * @author Roman Borschel Chris@0: */ Chris@0: interface EventSubscriber Chris@0: { Chris@0: /** Chris@0: * Returns an array of events this subscriber wants to listen to. Chris@0: * Chris@0: * @return array Chris@0: */ Chris@0: public function getSubscribedEvents(); Chris@0: }