fileQueue = $fileQueue; $this->showFile = $showFile; } /** * @param ConsoleTerminateEvent $event */ public function showGeneratedFiles(ConsoleTerminateEvent $event) { /* @var Command $command */ $command = $event->getCommand(); /* @var DrupalStyle $io */ $io = new DrupalStyle($event->getInput(), $event->getOutput()); if ($event->getExitCode() != 0) { return; } if ('self-update' == $command->getName()) { return; } $files = $this->fileQueue->getFiles(); if ($files) { $this->showFile->generatedFiles($io, $files, false); } } /** * @{@inheritdoc} */ public static function getSubscribedEvents() { return [ConsoleEvents::TERMINATE => 'showGeneratedFiles']; } }