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.
Signature
protected function initialize(InputInterface
$input,
OutputInterface
$output )
Parameters
$input
— Symfony\Component\Console\Input\InputInterface- An InputInterface instance
$output
— Symfony\Component\Console\Output\OutputInterface- An OutputInterface instance