AppConfig
final class AppConfig (View source)
Carries application-wide runtime values resolved from host configuration and bootstrap context.
Methods
Captures immutable host configuration consumed by framework capabilities.
Returns the configured timezone identifier or null to use the runtime default.
Returns the explicit application base URL or null when it must be derived from the request.
Returns the absolute application root path established during bootstrap.
Returns the absolute path exposed by the web server.
Returns the resolved application environment name.
Reports whether framework debug behavior is enabled.
Returns the absolute path containing application source code.
Returns the absolute path containing application configuration.
Returns the absolute path allocated to writable application data.
Returns the application secret or null when no secret was configured.
Details
__construct
__construct(string|null $timezone, string|null $baseUrl, string $basePath, string $publicPath, string $env, bool $debug, string $appPath, string $configPath, string $storagePath, string|null $secret = null)
Captures immutable host configuration consumed by framework capabilities.
timezone
string|null
timezone()
Returns the configured timezone identifier or null to use the runtime default.
baseUrl
string|null
baseUrl()
Returns the explicit application base URL or null when it must be derived from the request.
basePath
string
basePath()
Returns the absolute application root path established during bootstrap.
publicPath
string
publicPath()
Returns the absolute path exposed by the web server.
env
string
env()
Returns the resolved application environment name.
debug
bool
debug()
Reports whether framework debug behavior is enabled.
appPath
string
appPath()
Returns the absolute path containing application source code.
configPath
string
configPath()
Returns the absolute path containing application configuration.
storagePath
string
storagePath()
Returns the absolute path allocated to writable application data.
secret
string|null
secret()
Returns the application secret or null when no secret was configured.