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 93
Configurator
setDebugMode(bool|string|array $value)
Sets the %debugMode% parameter.
at line 106
bool
isDebugMode()
No description
at line 115
Configurator
setTempDirectory(string $path)
Sets path to temporary directory.
at line 124
Configurator
setTimeZone(string $timezone)
Sets the default timezone.
at line 136
Configurator
addParameters(array $params)
deprecated
deprecated
No description
at line 146
Configurator
addStaticParameters(array $params)
Adds static parameters.
at line 158
Configurator
addDynamicParameters(array $params)
Adds dynamic parameters.
at line 169
Configurator
addServices(array $services)
Adds service instances.
at line 177
protected array
getDefaultParameters()
No description
at line 205
void
enableTracy(string|null $logDirectory = null, string|null $email = null)
Enables Tracy debugger and configures it for the current mode.
at line 221
void
enableDebugger(string|null $logDirectory = null, string|null $email = null)
deprecated
deprecated
No description
at line 231
RobotLoader
createRobotLoader()
Creates RobotLoader for automatic class discovery and caching.
at line 254
Configurator
addConfig(string|array $config)
Adds a configuration file path or configuration array.
at line 264
Container
createContainer(bool $initialize = true)
Returns system DI container.
at line 284
string
loadContainer()
Loads system DI container class and returns its name.
at line 300
void
generateContainer(Compiler $compiler)
| internal |
No description
at line 336
protected Loader
createLoader()
No description
at line 343
protected array
generateContainerKey()
No description
at line 358
protected string
getCacheDirectory()
No description
at line 374
static bool
detectDebugMode(string|array|null $list = null)
Detects debug mode based on IP address or computer name matching.