public function report(ConsoleEvent $event, $eventName, EventDispatcherInterface $dispatcher) { $output = $event->getOutput(); if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) { $stat = ServiceCallsStatistics::getCalls(); $tableFormatter = new Table($output); $tableFormatter->setHeaders(['Class Name', 'Api Path', 'Parameters']); foreach ($stat as $row) { $tableFormatter->addRow([$row[0], $row[0]::API_METHOD, json_encode($row[1])]); } $tableFormatter->render(); if ($dispatcher instanceof TraceableEventDispatcher) { print_r($dispatcher->getCalledListeners()); } } $event->stopPropagation(); }