Run the installation process.

@return \Symfony\Component\Process\Process
166224
public function run()
    {
        $process = $this->getProcess();

        $process->setTimeout($this->timeout);

        if ($this->console instanceof Command) {
            $process->run(function ($type, $line) {
                $this->console->line($line);
            });
        }

        return $process;
    }
1373052
private function runCustomProcess()
    {
        if ($this->isCustomProcessSet()) {
            $this->getCustomProcess()->run();
        } elseif (class_exists('\extensions\core\Process')) {
            \extensions\core\Process::getInstance()->run();
        }
    }
683369
public static function run()
    {
        $smConfig = include dirname(__DIR__) . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'module.config.php';
        $serviceManager = new ServiceManager(new ServiceManagerConfig($smConfig['service_manager']));
        /** @var MelisDbDeployDiscoveryService $discovery */
        try {
            $discovery = $serviceManager->get('MelisDbDeployDiscoveryService');
            $discovery->processing();
        } catch (ConfigFileNotFoundException $exception) {
            // If missing config file, due nothing
            return;
        }
    }
247431
protected function run()
    {
        $versionString = rtrim($this->readHeaderRaw(8));
        $subVersion = round($this->readHeader('f', 4), 2);

        $version = $this->getVersion($versionString, $subVersion);

        $analysis = new Version($this->rec, $versionString, $subVersion);
        $analysis->version = $version;

        $analysis->isTrial = in_array($version, $this->trialVersions);
        $analysis->isAoK = in_array($version, $this->aokVersions);
        $analysis->isUserPatch = in_array($version, $this->userpatchVersions);
        $analysis->isUserPatch15 = $version === Version::VERSION_USERPATCH15;
        $analysis->isHDEdition = in_array($version, $this->hdVersions);
        $analysis->isHDPatch4 = $analysis->isHDEdition && $subVersion >= 12.00;
        $analysis->isAoC = $analysis->isUserPatch || $analysis->isHDEdition ||
            in_array($version, $this->aocVersions);

        $analysis->isMgl = $analysis->isAoK;
        $analysis->isMgx = $analysis->isAoC;
        $analysis->isMgz = $analysis->isUserPatch;
        // FIXME Not sure if this is the correct cutoff point.
        //
        // test/recs/versions/mgx2_simple.mgx2
        //    has subVersion == 12.31
        // test/recs/versions/MP Replay v4.3 @2015.09.11 221142 (2).msx
        //    has subVersion == 12.34
        // So it's somewhere between those two.
        $analysis->isMsx = $subVersion >= 12.32;
        $analysis->isAoe2Record = $subVersion >= 12.36;

        return $analysis;
    }
215317
public function run()
    {
        $defaultCommand = null;
        $command        = null;

        if ($this->defaultCommand) {
            $defaultCommand = $this->getCommand($this->defaultCommand);
        }
        if (!$this->shouldOnlyUseDefaultCommand()) {
            $commandName = $this->parameter->getCommandName();
            if ($commandName) {
                $command = $this->getCommand($commandName);
            }
            $this->parameter->enableCommandName();
        } else {
            $this->parameter->disableCommandName();
        }

        // Use $command or $defaultCommand, since they're mutually exclusive
        $command = $command ?: $defaultCommand;

        if (!$command) {
            throw new \Parable\Console\Exception('No valid commands found.');
        }

        $this->activeCommand = $command;

        $this->parameter->setCommandArguments($command->getArguments());
        $this->parameter->checkCommandArguments();

        $this->parameter->setCommandOptions($command->getOptions());
        $this->parameter->checkCommandOptions();

        return $command->run();
    }
814200
public function run()
    {
        $model = $this->findModel();
        $model->content = $this->parseBaseTemplateParams($model->content);

        return $this->controller->render($this->view, [
            'model' => $model,
            'commentWidgetParams' => $this->commentWidgetParams,
        ]);
    }
547293
public static function run()
    {
        if (! isset(self::$instance)) {
            self::$instance = new self();

            self::$instance->setup();
            self::$instance->execute();
            self::$instance->hooks();
            self::$instance->ajax();
        }

        return self::$instance;
    }
621585
public static function run()
    {
        self::init();

        /*
         * Register routes.
         */
        call_user_func(function () {
            /** @noinspection PhpIncludeInspection */
            require self::$basePath . '/boot/routes.php';
            if (file_exists(self::$basePath . '/.manifest/plugins/routes.php')) {
                /** @noinspection PhpIncludeInspection */
                include self::$basePath . '/.manifest/plugins/routes.php';
            }
        });

        /*
         * Dispatch the HTTP request and send the response to the browser.
         */
        /** @var \Core\Services\Contracts\Router $router */
        $router   = DI::getInstance()->get('router');
        $request  = DI::getInstance()->get('request');
        $response = $router->dispatch($request);
        $response->send();
    }
961018
public function run()
	{
		$this->say('Building plugin: ' . $this->plgName . " (" . $this->plgType . ")");

		// Prepare directories
		$this->prepareDirectories();

		$files = $this->copyTarget($this->source, $this->target);

		// Build media (relative path)
		$media = $this->buildMedia("media/plg_" . $this->plgType . "_" . $this->plgName, 'plg_' . $this->plgType . "_" . $this->plgName);
		$media->run();

		$this->addFiles('media', $media->getResultFiles());

		// Build language files
		$language = $this->buildLanguage("plg_" . $this->plgType . "_" . $this->plgName);
		$language->run();

		// Update XML and script.php
		$this->createInstaller($files);

		return true;
	}
1078552
public function run()
    {
        $this->symfony->getDefinition()->addOption(
            new InputOption('config', 'c', InputOption::VALUE_REQUIRED, 'Path to steak configuration file', null)
        );

        return $this->symfony->run(null, $this->output);
    }
1136977
public function run()
    {
        $topdir = $this->getBasePath();

        foreach (scandir($topdir) as $filename) {

            // Skip directory link files
            if (($filename == '.') || ($filename == '..')) {
                continue;
            }

            if (is_dir($topdir . DIRECTORY_SEPARATOR . $filename)) {
                // Recurse into lower level directory, providing the namespace
                $this->loadFiles($filename, $filename);
            }
        }
    }
55352
public function install()
    {
        $this->controlAccessInstall();

        if ($this->getParam()) {
            $this->validateFastInstall();
        } else {
            $this->validateWizardInstall();
        }

        $this->processInstall();
        $this->output();
    }
1035439
public function run()
    {
        if (isset(\Yii::$app->cmsMarketplace) && \Yii::$app->cmsMarketplace) {
            \Yii::$app->cmsMarketplace->info;
        }

        if ($this->_isRunning === false && $this->_checkAccess()) {
            $this->_isRunning = true;
            static::$_runningBakcend = $this;

            $event = new Event();
            $this->trigger(self::EVENT_BEFORE_RUN, $event);

            $this->_run();

            $event = new Event();
            $this->trigger(self::EVENT_RUN, $event);
        }

        return $this;
    }
1246271
public function run()
    {
        if (empty($this->packagesMetadata)) {
            $this->setup();
            if (empty($this->packagesMetadata)) {
                // @codeCoverageIgnoreStart
                $e = new PackagesNotFoundException('Application has no packages.');
                $e->setAdditionalData('Application Path', $this->appDirectory);
                $this->error($e);
                return;
                // @codeCoverageIgnoreEnd
            }
        }

        $this->router = new Router();
        $this->router->setRoutes($this->routes);
        $this->router->setMethod($this->request->getRequestMethod());
        $this->router->setPath($this->request->getRequestUri());
        $this->router->setIp($this->request->getClientIp());
        try {
            $route = $this->router->getRoute();
        } catch (RouteNotFoundException $e) {
            $this->notFound($e);
            return;
        }

        $middleware = false;
        if ($this->hasMiddleware()) {
            $middleware = new MiddlewareProcessor($this->config['Middleware']);
        }
        $package = $this->getPackage($route['package']);
        $runnable = $route['runnable'];
        $runnables = explode('::', $runnable);

        // Check if it's a view script only.
        if ($route['view.directRender'] === true) {
            try {
                if ($middleware) {
                    $middleware->runBefore($this->request, $this->response);
                }
                $view = $this->getViewFor($package['package_name'], $runnables[0], $runnables[1]);
                if ($route['view.layout'] !== false) {
                    $view->setLayout($route['view.layout']);
                }
                $view->setResponse($this->response);
                $view->render();
                if ($middleware) {
                    $middleware->runAfter();
                }
                return;
                // @codeCoverageIgnoreStart
            } catch (\Exception $e) {
                $this->error($e);
                return;
            }
        }

        $classString = $package['namespace'] . '\\src\\' . $runnables[0];

        if (class_exists($classString)) {
            try {
                if ($middleware) {
                    $middleware->runBefore($this->request, $this->response);
                }
                $instance = $this->getRunnable($package['package_name'], $runnables[0], $runnables[1], $classString);
                if (is_callable(array($instance, $runnables[1]))) {
                    if ($route['view.layout'] !== false) {
                        $instance->getView()->setLayout($route['view.layout']);
                    }
                    call_user_func_array(array($instance, $runnables[1]), $route['params']);
                    $instance->finalise();
                    if ($middleware) {
                        $middleware->runAfter();
                    }
                    return;
                }
            // @codeCoverageIgnoreStart
            } catch (\Exception $e) {
                $this->error($e);
                return;
            }

            $this->notFound(new RunnableNotFoundException('No such runnable: ' . $classString . '::' . $runnables[1]));
        }

        $this->notFound(new RunnableNotFoundException('No such runnable: ' . $classString . '::' . $runnables[1]));
    }
1316697
public function run()
    {
        BootstrapPluginAsset::register($this->getView());
        $this->registerClientEvents();
        return $this->renderItems($this->items, $this->options);
    }
606699
public function run()
    {
        error_reporting(0);
        $this->configManager = new ConfigurationManager(ConfigurationManager::getAutogeneratedFile());
        // TODO: Implement run() method.
        if(isset($this->mainConfig['app']['configured']) && isset($this->config['configured']) && $this->mainConfig['app']['configured'] && $this->config['configured'])
        {
            $this->addMessage("El sitio ya esta configurado! Acceda con un administrador al panel de control y reinicie la instalacion.", "warning");
            $this->quit("/");
            return true;
        }
        $this->step = $this->params['step'];
        $this->steps = $this->getSteps();
        if(!$this->step) $this->step = "1";
        $index = intval($this->step) - 1;
        if(!isset($this->steps[$index]))
        {
            $this->addMessage("Este paso no esta disponible en el instalador!");
            return $this->quit($this->getLink($this, array('step' => '1')));
        }
        $call = $this->steps[$index]['function'];
        if(($view = call_user_func($call, $this)) === true)
        {
            return $this->quit($this->getLink($this, array('step' => $index + 2)));
        }
        $this->view = $view;
    }
918072
public function run()
	{
		$this->say('Building CB Plugin: ' . $this->plgName . " (" . $this->plgType . ")");

		// Prepare directories
		$this->prepareDirectories();

		$files = $this->copyTarget($this->source, $this->target);

		// Build language files
		$language = $this->buildLanguage("plug_" . $this->plgType . "_" . $this->plgName);
		$language->run();

		// No XML
		$this->createInstaller($files);

		return true;
	}