/** * {@inheritdoc} */ protected function getCommandName(InputInterface $input) { $stream = $this->getStdinStream(); $hasStdin = $stream->getSize() > 0; $this->pluginCommand->setStream($stream); return $hasStdin ? $this->pluginCommand->getName() : $this->generateCommand->getName(); }