* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * This EventDispatcher automatically gets the kernel listeners injected * * @author Fabien Potencier */ class EventDispatcher extends BaseEventDispatcher { public function registerKernelListeners(array $kernelListeners) { foreach ($kernelListeners as $priority => $listeners) { foreach ($listeners as $listener) { $listener->register($this, $priority); } } } }