N98\Magento\Command\Database\ConsoleCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Результат integer | void
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->detectDbSettings($output);
        $descriptorSpec = array(0 => STDIN, 1 => STDOUT, 2 => STDERR);
        $mysqlClient = $input->getOption('use-mycli-instead-of-mysql') ? 'mycli' : 'mysql';
        /* @var $database DatabaseHelper */
        $database = $this->getHelper('database');
        $exec = $mysqlClient . ' ' . $database->getMysqlClientToolConnectionString();
        $pipes = array();
        $process = proc_open($exec, $descriptorSpec, $pipes);
        if (is_resource($process)) {
            proc_close($process);
        }
    }
ConsoleCommand