AppConfigDefinition
final class AppConfigDefinition extends AbstractConfigDefinition (View source)
Defines application-wide runtime values supplied by the host application.
Properties
| protected mixed[] | $data | from AbstractConfigDefinition |
Methods
Replaces one configuration value at a dot-separated path.
Appends one configuration value at a dot-separated list path.
Creates an empty application configuration definition.
Returns the configuration module key used by the application configuration resolver.
Sets the default timezone for the application.
Sets the public base URL of the application.
Stores the application-wide secret consumed by framework security capabilities.
Sets the absolute base path of the application.
Sets the current application environment name.
Enables or disables debug mode.
Sets the absolute application source path.
Sets the absolute application configuration path.
Sets the absolute public web root path.
Sets the absolute application storage path.
Details
toArray
array
toArray()
No description
set
protected AbstractConfigDefinition
set(string $path, mixed $value)
Replaces one configuration value at a dot-separated path.
append
protected AbstractConfigDefinition
append(string $path, mixed $value)
Appends one configuration value at a dot-separated list path.
moduleKey
static string
moduleKey()
Returns the configuration module key used by the application configuration resolver.
timezone
AppConfigDefinition
timezone(string|null $timezone)
Sets the default timezone for the application.
baseUrl
AppConfigDefinition
baseUrl(string|null $baseUrl)
Sets the public base URL of the application.
secret
AppConfigDefinition
secret(string|null $secret)
Stores the application-wide secret consumed by framework security capabilities.
basePath
AppConfigDefinition
basePath(string $basePath)
Sets the absolute base path of the application.
configPath
AppConfigDefinition
configPath(string $configPath)
Sets the absolute application configuration path.
publicPath
AppConfigDefinition
publicPath(string $publicPath)
Sets the absolute public web root path.
storagePath
AppConfigDefinition
storagePath(string $storagePath)
Sets the absolute application storage path.