LoadConfiguration
class LoadConfiguration extends LoadConfiguration
| internal |
Properties
| static protected null|Application): array<array-key, mixed> | $alwaysUseConfig | The closure that resolves the permanent, static configuration if applicable. |
from LoadConfiguration |
Methods
Load the configuration items from all of the files.
Load the given configuration file.
Get configuration arrays whose entries should be merged by name.
Get the framework configuration directory.
Set a callback to return the permanent, static configuration values.
Resolve the configuration file.
Configure the default database connection.
Rewrite queue database settings when testbench swaps the default DB connection.
Details
at line 22
void
bootstrap(Application $app)
Bootstrap the given application.
at line 42
protected void
loadConfigurationFiles(Application $app, Repository $repository)
Load the configuration items from all of the files.
in
LoadConfiguration at line 130
protected array
loadConfigurationFile(Repository $repository, string $name, string $path, array $base)
Load the given configuration file.
in
LoadConfiguration at line 160
protected array
mergeableOptions(string $name)
Get configuration arrays whose entries should be merged by name.
For example, an application Redis connection replaces the framework Redis connection, while framework connections not defined by the application remain. Nested arrays not listed here are replaced completely.
in
LoadConfiguration at line 180
protected array
getConfigurationFiles(Application $app)
Get all of the configuration files for the application.
in
LoadConfiguration at line 204
protected string
getNestedDirectory(SplFileInfo $file, string $configPath)
Get the configuration file nesting path.
in
LoadConfiguration at line 218
static string
frameworkConfigPath()
Get the framework configuration directory.
in
LoadConfiguration at line 234
protected array
getBaseConfiguration()
Get the base configuration files.
in
LoadConfiguration at line 254
static void
alwaysUse(Closure|null $alwaysUseConfig)
Set a callback to return the permanent, static configuration values.
Boot-only. The callback persists in a static property used during the LoadConfiguration bootstrapper; runtime use has no effect on already- loaded config.
in
LoadConfiguration at line 262
static void
flushState()
Flush all static state.
at line 69
protected string
resolveConfigurationFile(string $path, string $key)
Resolve the configuration file.
at line 80
protected Collection
extendsLoadedConfiguration(Collection $configurations)
Extend the loaded configuration.
at line 88
protected void
configureDefaultDatabaseConnection(Repository $repository)
Configure the default database connection.
at line 105
protected void
rewriteQueueDatabaseConnection(Repository $repository, string $key)
Rewrite queue database settings when testbench swaps the default DB connection.