You are here

protected function Command::initialize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Command/Command.php \Symfony\Component\Console\Command\Command::initialize()

Initializes the command just after the input has been validated.

This is mainly useful when a lot of commands extends one main command where some things need to be initialized based on the input arguments and options.

Parameters

InputInterface $input An InputInterface instance:

OutputInterface $output An OutputInterface instance:

1 call to Command::initialize()
Command::run in vendor/symfony/console/Command/Command.php
Runs the command.

File

vendor/symfony/console/Command/Command.php, line 189

Class

Command
Base class for all commands.

Namespace

Symfony\Component\Console\Command

Code

protected function initialize(InputInterface $input, OutputInterface $output) {
}