Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DebugCommand.php

function DebugCommand::execute

Same name in this branch
  1. 11.1.x vendor/symfony/validator/Command/DebugCommand.php \Symfony\Component\Validator\Command\DebugCommand::execute()

Overrides Command::execute

File

vendor/symfony/serializer/Command/DebugCommand.php, line 46

Class

DebugCommand
A console command to debug Serializer information.

Namespace

Symfony\Component\Serializer\Command

Code

protected function execute(InputInterface $input, OutputInterface $output) : int {
    $class = $input->getArgument('class');
    if (!class_exists($class)) {
        $io = new SymfonyStyle($input, $output);
        $io->error(\sprintf('Class "%s" was not found.', $class));
        return Command::FAILURE;
    }
    $this->dumpSerializerDataForClass($input, $output, $class);
    return Command::SUCCESS;
}
RSS feed
Powered by Drupal