* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * This EventDispatcher implementation uses a DependencyInjection container to load listeners. * * @author Fabien Potencier */ class EventDispatcher extends BaseEventDispatcher { /** * Constructor. * */ public function __construct(ContainerInterface $container) { foreach ($container->findTaggedServiceIds('kernel.listener') as $id => $attributes) { $container->get($id)->register($this); } } }