1: <?php
2: /**
3: * This file is part of the Autarky package.
4: *
5: * (c) Andreas Lutro <anlutro@gmail.com>
6: *
7: * For the full copyright and license information, please view the LICENSE
8: * file that was distributed with this source code.
9: */
10:
11: namespace Autarky\Events;
12:
13: use Symfony\Component\EventDispatcher\EventDispatcherInterface;
14:
15: /**
16: * Classes that implement this interface indicate that the event dispatcher can
17: * be set onto it.
18: */
19: interface EventDispatcherAwareInterface
20: {
21: /**
22: * Set the event dispatcher instance.
23: *
24: * @param EventDispatcherInterface $eventDispatcher
25: */
26: public function setEventDispatcher(EventDispatcherInterface $eventDispatcher);
27: }
28: