src/Phinx/Console/Command/Init.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $path = $this->resolvePath($input);
        $format = strtolower($input->getOption('format'));
        $this->writeConfig($path, $format);

        $output->writeln("<info>created</info> {$path}");
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $path = $this->resolvePath($input);
        $format = strtolower($input->getOption('format'));
        $this->writeConfig($path, $format);

        $output->writeln("<info>created</info> {$path}");
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ path = $ this -> resolvePath ( $ input ) ; $ format = strtolower ( $ input -> getOption ( 'format' ) ) ; $ this -> writeConfig ( $ path , $ format ) ; $ output -> writeln ( "<info>created</info> {$path}" ) ; }
Initializes the application.

@param \Symfony\Component\Console\Input\InputInterface   $input  Interface implemented by all input classes.
@param \Symfony\Component\Console\Output\OutputInterface $output Interface implemented by all output classes.

@throws \RuntimeException
@throws \InvalidArgumentException
@return void
Initializes the application .