REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 2.51 KB
Close
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php
Text
Base64
<?php namespace Illuminate\Foundation\Bootstrap; use Illuminate\Contracts\Foundation\Application; use Illuminate\Support\ServiceProvider; class RegisterProviders { /** * The service providers that should be merged before registration. * * @var array */ protected static $merge = []; /** * The path to the bootstrap provider configuration file. * * @var string|null */ protected static $bootstrapProviderPath; /** * Bootstrap the given application. * * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) { if (! $app->bound('config_loaded_from_cache') || $app->make('config_loaded_from_cache') === false) { $this->mergeAdditionalProviders($app); } $app->registerConfiguredProviders(); } /** * Merge the additional configured providers into the configuration. * * @param \Illuminate\Foundation\Application $app */ protected function mergeAdditionalProviders(Application $app) { if (static::$bootstrapProviderPath && file_exists(static::$bootstrapProviderPath)) { $packageProviders = require static::$bootstrapProviderPath; foreach ($packageProviders as $index => $provider) { if (! class_exists($provider)) { unset($packageProviders[$index]); } } } $app->make('config')->set( 'app.providers', array_merge( $app->make('config')->get('app.providers') ?? ServiceProvider::defaultProviders()->toArray(), static::$merge, array_values($packageProviders ?? []), ), ); } /** * Merge the given providers into the provider configuration before registration. * * @param array $providers * @param string|null $bootstrapProviderPath * @return void */ public static function merge(array $providers, ?string $bootstrapProviderPath = null) { static::$bootstrapProviderPath = $bootstrapProviderPath; static::$merge = array_values(array_filter(array_unique( array_merge(static::$merge, $providers) ))); } /** * Flush the bootstrapper's global state. * * @return void */ public static function flushState() { static::$bootstrapProviderPath = null; static::$merge = []; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
BootProviders.php
356 B
lrw-rw-rw-
2025-09-17 06:52:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
HandleExceptions.php
9.21 KB
lrw-rw-rw-
2025-09-17 06:52:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LoadConfiguration.php
5.84 KB
lrw-rw-rw-
2025-09-17 06:52:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LoadEnvironmentVariables.php
2.71 KB
lrw-rw-rw-
2025-09-17 06:52:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RegisterFacades.php
731 B
lrw-rw-rw-
2025-09-17 06:52:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RegisterProviders.php
2.51 KB
lrw-rw-rw-
2025-09-17 06:52:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SetRequestForConsole.php
847 B
lrw-rw-rw-
2025-09-17 06:52:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).