class ContainerLoader

DI container loader.

Traits

Strict class for better experience.

Methods

__construct(string $tempDirectory, bool $autoRebuild = false)

No description

string
load(callable $generator, mixed $key = null)

No description

string
getClassName(mixed $key)

No description

array
generate(string $class, callable $generator)

No description

Details

at line 29
__construct(string $tempDirectory, bool $autoRebuild = false)

Parameters

string $tempDirectory
bool $autoRebuild

at line 40
string load(callable $generator, mixed $key = null)

Parameters

callable $generator function (Nette\DI\Compiler $compiler): string|null
mixed $key

Return Value

string

at line 53
string getClassName(mixed $key)

Parameters

mixed $key

Return Value

string

at line 115
protected array generate(string $class, callable $generator)

Parameters

string $class
callable $generator

Return Value

array of (code, file[])