/** @var EventDispatcherInterface $dispatcher */
$dispatcher =
$this->eventDispatchers->
get($dispatcherId);
foreach ($dispatcher->
getListeners() as $event =>
$listeners) { $io->
section(sprintf('"%s" event',
$event));
$rows =
[];
foreach ($listeners as $order =>
$listener) { $rows[] =
[ sprintf('#%d',
$order + 1
),
$this->
formatCallable($listener),
$dispatcher->
getListenerPriority($event,
$listener),
];
} $io->
table( ['Order', 'Callable', 'Priority'
],
$rows );
} }