* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle; use Symfony\Component\EventDispatcher\EventDispatcher as BaseEventDispatcher; /** * 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); } } } }