Boot extension components.

@return void
8222
protected function bootExtensionComponents()
    {
        $path = realpath(__DIR__.'/../resources');

        $acl    = $this->app->make('orchestra.acl');
        $memory = $this->app->make('orchestra.platform.memory');

        $acl->make('orchestra/story')->attach($memory);

        $this->addConfigComponent('orchestra/story', 'orchestra/story', "{$path}/config");
        $this->addViewComponent('orchestra/story', 'orchestra/story', "{$path}/views");
    }
775438
public static function boot(): void
    {
        parent::boot();
        static::bootStapler();

        // Modify file name before saving.
        static::saving(function (CategoryIcon $categoryIcon) {
            if ($categoryIcon->isDirty('icon_file_name') && !is_null($categoryIcon->icon_file_name)) {
                $pathInfo = pathinfo(
                    $categoryIcon->icon->originalFileName()
                );

                if ($pathInfo && isset($pathInfo['extension'])) {
                    $newFilename = md5(time()) . '.' . $pathInfo['extension'];
                    $categoryIcon->icon->instanceWrite('file_name', $newFilename);
                }
            }
        });
    }
1265740
protected function runComponentBootstrap(){
        foreach ($this->bootstrapComponents as $component) {
            if ($component instanceof BootstrapInterface) {
                Yii::trace('Bootstrap with ' . get_class($component) . '::bootstrap()', __METHOD__);
                $component->bootstrap($this);
            }
        }
    }
1032668
public function boot()
    {
        $this->bootAuthen();

        $path = \realpath(__DIR__.'/../../');

        $this->addConfigComponent('orchestra/foundation', 'orchestra/foundation', "{$path}/resources/config");
        $this->addLanguageComponent('orchestra/foundation', 'orchestra/foundation', "{$path}/resources/lang");
        $this->addViewComponent('orchestra/foundation', 'orchestra/foundation', "{$path}/resources/views");
    }
387800
protected function bootExtensionComponents()
    {
        $path = realpath(__DIR__.'/../');

        $this->addConfigComponent('orchestra/control', 'orchestra/control', "{$path}/config");
        $this->addLanguageComponent('orchestra/control', 'orchestra/control', "{$path}/resources/lang");
        $this->addViewComponent('orchestra/control', 'orchestra/control', "{$path}/resources/views");

        $this->loadMigrationsFrom([
            "{$path}/database/migrations",
        ]);
    }
127693
protected static function boot()
    {
        parent::boot();

        static::creating(function ($comment) {
            $comment->{$comment->getKeyName()} = Uuid::uuid4()->toString();
        });
    }
1098785
public function boot()
    {
        $this->publishes(
            [
                $this->getConfigPath() => config_path('vanilla-integration.php'),
            ],
            'config'
        );
        $this->loadRoutesFrom(__DIR__ . '/../../../routes/routes.php');
        $this->registerHelpers();
    }
1315220
public function boot() {
    $this->package('palmabit/multilanguage');

    $this->registerAliases();
    $this->updateLocales();

    require __DIR__ . "/../../filters.php";
    require __DIR__ . "/../../routes.php";
    require __DIR__ . "/../../composer.php";
  }
475721
protected function bootMemory()
    {
        if (!isset($this->routeGroup) or strlen($this->routeGroup) <= 0) {
            throw new RuntimeException('Invalid extension route group.');
        }

        $this->app->make('antares.acl')->make($this->routeGroup)->attach(
                $this->app->make('antares.platform.memory')
        );
    }
705350
public function boot()
    {
        $path = __DIR__ . '/../resources/views';

        $this->loadViewsFrom($path, 'flash');

        $this->publishes([
            $path => base_path('resources/views/vendor/flash'),
        ], 'flash');
    }
713999
public function boot()
    {
        $configPath = config_path('admin.php');

        $this->publishes([
            __DIR__.'/../../config/config.php' => $configPath,
        ], 'config');

        $this->publishes([
            __DIR__.'/../../../public/' => public_path('packages/pingpong/admin/'),
        ], 'assets');

        $viewPath = base_path('resources/views/vendor/pingpong/admin/');

        $this->publishes([
            __DIR__.'/../../views/' => $viewPath,
        ], 'views');

        if (file_exists($configPath)) {
            $this->mergeConfigFrom($configPath, 'admin');
        }

        $this->loadViewsFrom([$viewPath, __DIR__.'/../../views'], 'admin');

        $langPath = base_path('resources/lang/en/admin.php');

        $this->publishes([
            __DIR__.'/../../lang/admin.php' => $langPath,
        ], 'lang');
    }
303991
public function boot()
    {
        $this->callBeforeListeners('boot', [$this]);
        $this->callAfterListeners('boot', [$this]);
        $this->wasBooted = true;
        static::$staticInstance = $this;
        static::$staticContainer = $this->container;
    }
166388
public function boot()
    {
        $entries = AddonModel::query()
                             ->where('enabled', true)
                             ->get();

        /** @var AddonModel $entry */
        foreach ($entries as $entry) {
            if ($addon = $entry->resolveAddon()) {
                $addon->boot();
            }
        }

        PlatformBootedEvent::dispatch();
    }
157021
public function boot(): void
    {
        $this->registerConsoleCommands();
        $this->registerPublishes();
        $this->registerRoutes();
        $this->registerViews();
        $this->registerTranslations();
        $this->registerObservers();
        $this->registerViewComposers();
    }
494015
public function boot() {
        $this->commands(BlueprintListCommand::class);
        $this->commands(BlueprintDetailCommand::class);
        $this->commands(FieldSetDetailCommand::class);
        $this->commands(PackageMigrateCommand::class);
    }
336870
public function boot()
    {
        // Load configs files and publish them
        $path = __DIR__ . '/../../config';
        $this->loadConfigsFrom($path, $this->namespace, $this->publish);

        // Load the aliases from the config files
        $path = config_path($this->namespace);
        $this->loadAliasesFrom($path, $this->namespace);
    }
770066
public function boot()
    {
        $this->bladeDirectives();
        $this->bladeExtensions();

        $this->loadViewsFrom(__DIR__.'/resources/views', 'laravel-menu');

        $this->publishes([
            __DIR__.'/resources/views' => base_path('resources/views/vendor/laravel-menu'),
            __DIR__.'/../../config/settings.php' => config_path('laravel-menu/settings.php'),
            __DIR__.'/../../config/views.php' => config_path('laravel-menu/views.php'),
        ]);
    }