Install.

@return void
324625
public function install()
    {
        if (file_exists($this->destination . '/' . $this->filename)
            || !$this->isBitbucket()
        ) {
            return;
        }


        $files = [
            __DIR__ . '/../../templates/mapping/files',
            sprintf(
                __DIR__ . '/../../templates/mapping/pipelines/%s',
                $this->typeResolver->resolve()
            )
        ];

        $reader = new UnixFileMappingReader(
            __DIR__ . '/../../templates/files',
            getcwd(),
            ...$files
        );
        
        foreach ($reader as $mapping) {
            $this->fileInstaller->installFile($mapping);
            $this->io->write(
                sprintf(
                    '<info>Installed:</info> %s',
                    $mapping->getRelativeDestination()
                )
            );
        }
    }
914004
public function install()
    {
        $module = Core::app()->getModuleById($this->sModuleAlias);

        if (!$module)
        {
            // 1. add row to the modules table
            $moduleDir = RX_PATH.'/ruxon/modules/'.$this->sModuleAlias;

            $info = Loader::loadConfigFile($moduleDir, 'module');

            $module = array(
                'Name' => $info['Name'],
                'Description' => $info['Description'],
                'Version' => $info['Version'],
                'DbRevision' => '-1'
            );

            Core::app()->updateModuleById($this->sModuleAlias, $module);

            $sClassName = $this->sModuleAlias.'Module';
            $classNameWithNamespaces = '\ruxon\modules\\'.$this->sModuleAlias.'\classes\\'.$sClassName;
            Manager::getInstance()->setModule($this->sModuleAlias, class_exists($classNameWithNamespaces) ? new $classNameWithNamespaces : new $sClassName);

            // 2. create table structure
            $migrator = new MysqlDbMigrator($this->sModuleAlias);
            $migrator->migrateTo('last');


            // 3. copy default config to config folder
            $file1 = RX_PATH.'/ruxon/modules/'.$this->sModuleAlias.'/config/module.inc.php';
            $file2 = RX_PATH.'/ruxon/config/modules/'.$this->sModuleAlias.'.inc.php';
            if (file_exists($file1) && !file_exists($file2))
            {
                copy($file1, $file2);
            }

            return true;
        }

        return false;
    }
626505
public function boot()
    {
        $app = $this->app;

        /*
         * ----------------------------------------------------------------------------
         * Bind the IOC container to our facades
         * Completely indebted to Taylor Otwell & Laravel for this.
         * ----------------------------------------------------------------------------
         */
        Facade::setFacadeApplication($app);

        /**
         * ----------------------------------------------------------------------------
         * Load path detection for relative assets, URL and path to home.
         * ----------------------------------------------------------------------------.
         */
        require_once DIR_BASE_CORE . '/bootstrap/paths.php';

        /*
         * ----------------------------------------------------------------------------
         * Add install environment detection
         * ----------------------------------------------------------------------------
         */
        $this->initializeEnvironmentDetection($app);

        /*
         * ----------------------------------------------------------------------------
         * Enable Configuration
         * ----------------------------------------------------------------------------
         */
        $config = $this->initializeConfig($app);

        /*
         * ----------------------------------------------------------------------------
         * Set configured error reporting
         * ----------------------------------------------------------------------------
         */
        $this->setupErrorReporting($config);

        /*
         * ----------------------------------------------------------------------------
         * Enable Localization
         * ----------------------------------------------------------------------------
         */
        $this->initializeLocalization($app);

        /*
         * ----------------------------------------------------------------------------
         * Finalize paths.
         * ----------------------------------------------------------------------------
         */
        require DIR_BASE_CORE . '/bootstrap/paths_configured.php';

        /*
         * ----------------------------------------------------------------------------
         * Setup core classes aliases.
         * ----------------------------------------------------------------------------
         */
        $this->initializeClassAliases($config);

        /*
         * ----------------------------------------------------------------------------
         * Simple legacy constants like APP_CHARSET
         * ----------------------------------------------------------------------------
         */
        $this->initializeLegacyDefinitions($config, $app);

        /*
         * ----------------------------------------------------------------------------
         * Setup the core service groups.
         * ----------------------------------------------------------------------------
         */
        $this->initializeServiceProviders($app, $config);

        /*
         * ----------------------------------------------------------------------------
         * Setup file cache directories. Has to come after we define services
         * because we use the file service.
         * ----------------------------------------------------------------------------
         */
        $app->setupFilesystem();

        /*
         * ----------------------------------------------------------------------------
         * Registries for theme paths, assets, routes and file types.
         * ----------------------------------------------------------------------------
         */
        $this->initializeAssets($config);
        $this->initializeRoutes($config);
        $this->initializeFileTypes($config);

        // If we're not in the CLI SAPI, lets do additional booting for HTTP
        if (!$this->app->isRunThroughCommandLineInterface()) {
            return $this->bootHttpSapi($config, $app);
        }
    }
468956
public function boot()
    {
        self::$packagePath = dirname(__DIR__);

        $this->publishes(
            [
                self::$packagePath . '/config/repository.php' => config_path('repository.php'),
            ],
            'repository'
        );
    }
1199547
public function install()
    {
        $file = $this->getFilePath();

        $contents = $this->command->files()->get(SLEEPINGOWL_STUB_PATH.'/bootstrap.stub');
        $this->command->files()->put($file, $contents);
        $filePath = str_replace(base_path(), '', $file);
        $this->command->line("<info>Bootstrap file is [{$filePath}]</info>");
    }
281433
public function boot(): void
    {
        if ($this->app->runningInConsole()) {
            $this->commands([
                MakeIntentCommand::class,
                MakeInteractionCommand::class,
                MakeActivatorCommand::class,
                ListDriversCommand::class,
                InstallDriverCommand::class,
                ListChannelsCommand::class,
                ListIntentsCommand::class,
            ]);
        }
    }
659333
public function boot()
    {
        $this->publishes([
            __DIR__.'/../config/media.php' => config_path('media.php')
        ], 'config');

        $this->publishes([
            __DIR__ . '/../migrations' => $this->app->databasePath() . '/migrations'
        ], 'migrations');
    }
1004662
function install()
    {
        if ($this->error_handler) {
            throw new Exception(sprintf('%s->install() must only be called once', get_class($this)));
        }
        $this->error_handler = new ErrorHandler($this, false, $this->error_types);
        $this->error_handler->registerExceptionHandler();
        $this->error_handler->registerErrorHandler();
        $this->error_handler->registerShutdownFunction();
        return $this;
    }
1084245
public function boot()
    {
        $this->publishes([
            realpath(__DIR__.'/../config/follow.php') => config_path('follow.php'),
        ], 'config');

        $this->publishes([
            realpath(__DIR__.'/../database/migrations') => database_path('migrations'),
        ], 'migrations');
    }
489201
public function install()
    {
        if ($this->request->data()) {
            $task = false;
            $uploadError = false;

            if (isset($this->request->data['download'])) {
                $task = (bool)WebShellDispatcher::run("Installer.plugins install -s \"{$this->request->data['url']}\" --theme -a");
            } elseif (isset($this->request->data['file_system'])) {
                $task = (bool)WebShellDispatcher::run("Installer.plugins install -s \"{$this->request->data['path']}\" --theme -a");
            } else {
                $uploader = new PackageUploader($this->request->data['file']);
                if ($uploader->upload()) {
                    $task = (bool)WebShellDispatcher::run('Installer.plugins install -s "' . $uploader->dst() . '" --theme -a');
                } else {
                    $uploadError = true;
                    $this->Flash->set(__d('system', 'Plugins installed but some errors occur'), [
                        'element' => 'System.installer_errors',
                        'params' => ['errors' => $uploader->errors(), 'type' => 'warning'],
                    ]);
                }
            }

            if ($task) {
                $this->Flash->success(__d('system', 'Theme successfully installed!'));
                $this->redirect($this->referer());
            } elseif (!$task && !$uploadError) {
                $this->Flash->set(__d('system', 'Theme could not be installed'), [
                    'element' => 'System.installer_errors',
                    'params' => ['errors' => WebShellDispatcher::output()],
                ]);
            }
        }

        $this->title(__d('system', 'Install Theme'));
        $this->Breadcrumb
            ->push('/admin/system/themes')
            ->push(__d('system', 'Install new theme'), '#');
    }
724049
public function install()
    {
        $this->extractZip($this->downloadZip());

        rename($this->sparkPath(), $this->command->path.'/spark');

        (new Filesystem)->deleteDirectory(
            $this->command->path.'/spark-new'
        );
    }
153506
public function install()
    {
        // Check if not installed ...
        if (true !== $this->isInstalled()) {
            try {
                $this
                    ->dumpState()                                   // Backup current state
                    ->installed(true)                               // 1st mark that it installed
                    ->makeVerbose()                                 // Enable the complete output of PHP's errors
                    ->whoops(new Run())                             // Create a Whoops instance
                    ->installWhoops()                               // Install Whoops Exception Handler
                    ->getLogger()
                        ->debug('Debugging tools installed.');

            } catch (Doozr_Debugging_Exception $exception) {

                $this
                    ->installed(false)
                    ->uninstallWhoops()
                    ->restoreState();

                throw new Doozr_Debugging_Exception(
                    sprintf('Debugging could not be installed! Error: %s', $exception->getMessage())
                );
            }

        } else {
            throw new Doozr_Debugging_Exception(
                'Debugging is already installed!'
            );
        }

        // Enable chaining
        return $this;
    }
328317
public function boot()
    {
        $this->publishes([
            __DIR__.'/../public' => public_path(),
            __DIR__.'/app' => app_path(),
            __DIR__.'/database' => database_path(),
            __DIR__.'/resources' => resource_path(),
            __DIR__.'/routes' => base_path('routes')
        ]);
    }
121612
public function install()
    {
        $this->assertIsDebugMode();

		$success = false;
		try {
			$extInstaller = new tao_install_ExtensionInstaller($this->getCurrentExtension());
			$extInstaller->install();
			$message =   __('Extension "%s" has been installed', $this->getCurrentExtension()->getId());
			$success = true;

			// reinit user session
			$session = $this->getSession()->refresh();
		}
		catch(common_ext_ExtensionException $e) {
			$message = $e->getMessage();
		}

        $this->returnJson(array('success' => $success, 'message' => $message));
	}
224036
public function install()
    {
        $this->ensureNotInstalledBefore();

        if ($this->locator) {
            $this->path = $this->locator->locate($this->slug);
        }

        $this->validate();

        $this->make();

        $this->register();

        $this->migrate();

        $this->installSubAddons();

        AddonInstalledEvent::dispatch($this->addon);

        return $this;
    }
146601
public function boot()
    {
        $this->loadDatabaseConnection();
        $this->loadLibraries();

        if (file_exists(system_path("registered-libraries-cli.php")))
        {
            require system_path("registered-libraries-cli.php");
        }

        if (file_exists(system_path("registered-global-middlewares-cli.php")))
        {
            require system_path("registered-global-middlewares-cli.php");
        }

        $application_commands = $this->getApplicationCommands(glob(app_path('Commands/*.php')));
        $skeleton_commands = $this->getSkeletonCoreCommands(glob(__DIR__ . "/Console/Commands/*.php"));
        $modules_commands = $this->getModulesCommands();

        $this->cli_app = new Application(config('app.name'));
        $this->cli_app->addCommands(array_merge($application_commands, $skeleton_commands, $modules_commands));
    }
1217609
public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->commands([
                Console\Commands\InstallWebDriverCommand::class,
                Console\Commands\StartWebDriverCommand::class,
                Console\Commands\StopWebDriverCommand::class,
                Console\Commands\UpdateWebDriverCommand::class,
                Console\Commands\StatusWebDriverCommand::class
            ]);
        }
    }