Liip\RMT\Command\ReleaseCommand::initialize PHP Method

initialize() protected method

protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function initialize(InputInterface $input, OutputInterface $output)
    {
        parent::initialize($input, $output);
        Context::get('information-collector')->handleCommandInput($input);
        $this->getOutput()->writeBigTitle('Welcome to Release Management Tool');
        $this->executeActionListIfExist('prerequisites');
    }

Usage Example

 protected function initialize(InputInterface $input, OutputInterface $output)
 {
     $this->ensureVcsCommitFailsGracefully($this->getContext()->getList(Context::PRERELEASE_LIST));
     $this->ensureVcsCommitFailsGracefully($this->getContext()->getList(Context::POSTRELEASE_LIST));
     $this->ensureVCSCommitIsPostReleaseAction();
     parent::initialize($input, $output);
 }