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

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

* The most of this needs to be incapsulated into an extra Build class
protected sourceInstall ( $package, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, $optionsValue = [], $force_opts = '' )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function sourceInstall($package, InputInterface $input, OutputInterface $output, $optionsValue = [], $force_opts = '')
    {
        $php = Engine::factory();
        $helper = $this->getHelperSet()->get('question');
        $build = \Pickle\Package\Command\Build::factory($package, $optionsValue);
        try {
            $build->prepare();
            $build->createTempDir($package->getUniqueNameForFs());
            $build->configure($force_opts);
            $build->make();
            $build->install();
            $this->saveBuildLogs($input, $build);
        } catch (\Exception $e) {
            $this->saveBuildLogs($input, $build);
            $output->writeln('The following error(s) happened: ' . $e->getMessage());
            $prompt = new ConfirmationQuestion('Would you like to read the log?', true);
            if ($helper->ask($input, $output, $prompt)) {
                $output->write($build->getLog());
            }
        }
        $build->cleanup();
    }