boot

@return  void
@throws \ReflectionException
420659
public function boot()
    {
        $ns = (new \ReflectionClass($this->package))->getNamespaceName();

        RecordResolver::addNamespace($ns . '\Record');
        DataMapperResolver::addNamespace($ns . '\DataMapper');
        FieldHelper::addNamespace($ns . '\Field');
        ValidatorHelper::addNamespace($ns . 'Validator');
        // FieldDefinitionResolver::addNamespace($ns . '\Form');
    }
414915
public function boot()
    {
        // add migrations, https://laravel.com/docs/5.4/packages#resources
        $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');

        $this->app->alias('df.system.resource', SystemResourceManager::class);
        // DreamFactory Specific Facades...
        $loader = AliasLoader::getInstance();
        $loader->alias('SystemResourceManager', SystemResourceManagerFacade::class);
    }
426095
public function boot()
    {
        $this->setupConfig();

        if ($this->app->runningInConsole()) {
            $this->commands([
                TransformerMakeCommand::class,
            ]);
        }

        $this->setupMacro();
    }
786891
public function boot()
	{
		// Set up the framework core

		$this->initialize();

		// Configure

		$this->configure();

		// Register services in the IoC injection container

		$this->registerServices();

		// Register class aliases

		$this->registerClassAliases();

		// Load the application bootstrap file

		$this->bootstrap();

		// Boot packages

		$this->bootPackages();

		// Return application instnace

		return $this;
	}
1232969
public function boot()
    {
        $activeTheme = 'avored-default';
        $dbConnectError = false;

        try {
            DB::connection()->getPdo();
        } catch (\Exception $e) {
            $dbConnectError = true;
        }
    
        if (false === $dbConnectError && Schema::hasTable('configurations')) {
            $repository = $this->app->get(ConfigurationInterface::class);
            $activeTheme = $repository->getValueByKey('active_theme_identifier');
        }
        $theme = Theme::get($activeTheme);
        $fallBackPath = base_path('resources/lang');
        $this->app['lang.path'] = array_get($theme, 'lang_path');
    }
971832
public function boot()
    {
        $registryServiceName = 'service_provider_registry_'.$this->id;
        $this->container->set($registryServiceName, $this->getRegistry($this->container));
    }
299823
public function boot()
    {
        $path = __DIR__ . '/../resources/lang/en/exceptionmessages.php';

        $this->publishes([
            $path => resource_path("lang/vendor/{$this->namespace}/en/exceptionmessages.php"),
        ]);

        $this->loadTranslationsFrom($path, $this->namespace);
    }
1336099
public function boot()
    {
        $this->loader->loadManifest();

        foreach ($this->extensions as $extension) {
            try {
                $this->eventDispatcher->dispatch(new Booted($extension));

                $name = $extension->getPackage()->getName();

                $this->eventDispatcher->dispatch('extension.started', [$name, []]);
                $this->eventDispatcher->dispatch('extension.started: {$name}', [[]]);
                $this->eventDispatcher->dispatch(new ComponentStarted($name));

                $this->eventDispatcher->dispatch('extension.booted', [$name, []]);
                $this->eventDispatcher->dispatch('extension.booted: {$name}', [[]]);
                $this->eventDispatcher->dispatch(new ComponentBooted($name));
            } catch (Exception $e) {
                throw $e;
            }
        }

        $this->eventDispatcher->dispatch(new BootedAll());
        $this->eventDispatcher->dispatch('antares.extension: booted');
        $this->eventDispatcher->dispatch(new ComponentsBooted());

        $this->loader->writeManifest();
        $this->booted = true;
    }
853193
public function boot()
    {
        // Loop the providers and register commands
        $providers = $this->container->providers(false);

        foreach ($providers as $provider) {
            if (method_exists($provider, 'commands')) {
                $this->registerCommands($provider->commands());
            }
        }
    }
751315
public function boot()
    {
        $this->registerResources();
        $this->registerServiceProviders();
        $this->registerAliases();
        $this->registerModuleRegistry();
        $this->registerCommands();
        $this->registerRoutesAndMiddlewares();
        $this->registerFields();
        $this->registerGeneratorStubs();
        $this->registerLocales();
        $this->registerViewComposers();
        $this->registerValidationRules();
        $this->registerAssets();

        $this->app->singleton( SecurityStrategy::class, function()
        {
            return $this->app->make( SessionSecurityService::class );
        } );

        $this->loadTranslationsFrom( __DIR__ . '/resources/lang', 'arbory' );
    }
757023
public function boot()
    {
        $this->loadTranslationsFrom(__DIR__.'/../lang', 'laraplans');

        $this->publishes([
            __DIR__.'/../database/migrations/' => database_path('migrations')
        ], 'migrations');

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

        $this->publishes([
            __DIR__.'/../lang' => resource_path('lang/vendor/laraplans'),
        ]);
    }
981201
public function boot()
    {
        foreach ($this->getFiles() as $filename) {
            $path = $this->path . '/' . $filename;
            
            if (file_exists($path)) {
                require $path;
            };
        }
    }
478622
public function boot()
    {
        if (config('authentication.enableRoutes') and ! $this->app->routesAreCached()) {
            require __DIR__ . '/Http/routes.php';
        }

        $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'authentication');
        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'authentication');

        $this->publishes([__DIR__ . '/../database/migrations' => database_path('migrations')], 'migrations');
    }
359762
public function boot()
    {
        // Load configs files and publish them
        $path = __DIR__ . '/../../config';
        $this->loadYamlFrom($path, $this->namespace, $this->publish);

        // Load more configs and aliases
        parent::boot();
    }
1270950
public function boot()
    {
        if (! $this->app->routesAreCached()) {
            require __DIR__.'/../resources/routes/routes.php';
        }

        $this->publishesMigrations();
        $this->publishesConfig();

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

        $this->publishes([
            __DIR__.'/../resources/views' => base_path('resources/views/vendor/edible'),
        ]);
    }
574873
public function boot()
    {
        try {
            Configuration::all()->each(function($config) {
                config()->set($config->key, $config->value);
            });
        } catch (QueryException $e) {
            // \\_(",)_//
        }
    }
1207532
public function boot()
    {
        if (config('getrets.enable_example')) {
            $this->loadRoutesFrom(realpath(__DIR__.'/../../routes/web.php'));
        }

        $this->loadTranslationsFrom(realpath(__DIR__.'/../../resources/lang'), 'GetRETS');
        $this->publishes([realpath(__DIR__.'/../../resources/lang') => resource_path('lang/vendor/timitek')], 'translations');

        $this->loadViewsFrom(realpath(__DIR__.'/../../resources/views'), 'GetRETS');
        $this->publishes([realpath(__DIR__.'/../../resources/views') => base_path('resources/views/vendor/timitek/getrets')], 'views');

        $this->loadMigrationsFrom(realpath(__DIR__.'/../../database/migrations'));
        $this->publishes([realpath(__DIR__.'/../../database/migrations') => database_path('migrations')], 'migrations');

        $this->publishes([realpath(__DIR__.'/../../resources/assets') => public_path('assets')], 'public');

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

        $this->publishes([realpath(__DIR__.'/../../database/seeds') => database_path('seeds')], 'seeds');
    }