Configurator
class Configurator
Initial system DI container generator.
Constants
| CookieSecret |
|
| deprecated COOKIE_SECRET |
|
Properties
| $onCompile | |||
| $defaultExtensions | |||
| list<class-string> | $autowireExcludedClasses | ||
| protected array<string,mixed> | $staticParameters | ||
| protected array<string,mixed> | $dynamicParameters | ||
| protected array<string,object> | $services | ||
| protected list<string|array<string,mixed>> | $configs |
Methods
No description
Sets the %debugMode% parameter.
No description
Sets path to temporary directory.
Sets the default timezone.
Adds static parameters.
Adds dynamic parameters.
Adds service instances.
No description
Enables Tracy debugger and configures it for the current mode.
No description
Creates RobotLoader for automatic class discovery and caching.
Adds a configuration file path or configuration array.
Returns system DI container.
Loads system DI container class and returns its name.
No description
No description
No description
No description
Detects debug mode based on IP address or computer name matching.
Details
at line 83
__construct()
No description
at line 106
Configurator
setDebugMode(bool|string|array $value)
Sets the %debugMode% parameter.
at line 119
bool
isDebugMode()
No description
at line 128
Configurator
setTempDirectory(string $path)
Sets path to temporary directory.
at line 137
Configurator
setTimeZone(string $timezone)
Sets the default timezone.
at line 149
Configurator
addParameters(array $params)
deprecated
deprecated
No description
at line 159
Configurator
addStaticParameters(array $params)
Adds static parameters.
at line 171
Configurator
addDynamicParameters(array $params)
Adds dynamic parameters.
at line 182
Configurator
addServices(array $services)
Adds service instances.
at line 190
protected array
getDefaultParameters()
No description
at line 218
void
enableTracy(string|null $logDirectory = null, string|null $email = null)
Enables Tracy debugger and configures it for the current mode.
at line 234
void
enableDebugger(string|null $logDirectory = null, string|null $email = null)
deprecated
deprecated
No description
at line 244
RobotLoader
createRobotLoader()
Creates RobotLoader for automatic class discovery and caching.
at line 267
Configurator
addConfig(string|array $config)
Adds a configuration file path or configuration array.
at line 277
Container
createContainer(bool $initialize = true)
Returns system DI container.
at line 297
string
loadContainer()
Loads system DI container class and returns its name.
at line 313
void
generateContainer(Compiler $compiler)
| internal |
No description
at line 349
protected Loader
createLoader()
No description
at line 356
protected array
generateContainerKey()
No description
at line 371
protected string
getCacheDirectory()
No description
at line 387
static bool
detectDebugMode(string|array|null $list = null)
Detects debug mode based on IP address or computer name matching.