Pickle\Console\Command\InstallerCommand::execute PHP Метод

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

protected execute ( 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 execute(InputInterface $input, OutputInterface $output)
    {
        $path = rtrim($input->getArgument('path'), '/\\');
        Util\TmpDir::set($input->getOption('tmp-dir'));
        /* Respect the --php option. This will setup the engine instance. */
        $php = Engine::factory($input->getOption('php'));
        /* if windows, try bin install by default */
        if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
            $sourceRequested = $input->getOption('source');
            if (!$sourceRequested) {
                $this->binaryInstallWindows($path, $input, $output);
                return 0;
            }
        }
        $package = $this->getHelper('package')->convey($input, $output, $path);
        /* TODO Info package command should be used here. */
        $this->getHelper('package')->showInfo($output, $package);
        list($optionsValue, $force_opts) = $this->buildOptions($package, $input, $output);
        if ($input->getOption('dry-run')) {
            return 0;
        }
        $this->sourceInstall($package, $input, $output, $optionsValue, $force_opts);
        return 0;
    }