src/Command/InitDbCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        if (false === is_file('composer.json')) {
            throw new Exception('Commands must be run from root of project.');
        }

        try {
            $this->databaseService->init(getcwd());
            $output->writeln('<info>'.static::$successMessage.'</info>');
        } catch (Exception $e) {
            $output->writeln($e->getMessage());
        }
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        if (false === is_file('composer.json')) {
            throw new Exception('Commands must be run from root of project.');
        }

        try {
            $this->databaseService->init(getcwd());
            $output->writeln('<info>'.static::$successMessage.'</info>');
        } catch (Exception $e) {
            $output->writeln($e->getMessage());
        }
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { if ( false === is_file ( 'composer.json' ) ) { throw new Exception ( 'Commands must be run from root of project.' ) ; } try { $ this -> databaseService -> init ( getcwd ( ) ) ; $ output -> writeln ( '<info>' . static :: $ successMessage . '</info>' ) ; } catch ( Exception $ e ) { $ output -> writeln ( $ e -> getMessage ( ) ) ; } }
{@inheritdoc}
{