class ContainerLoader

DI container loader.

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 26
__construct(string $tempDirectory, bool $autoRebuild = false)

No description

Parameters

string $tempDirectory
bool $autoRebuild

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

No description

Parameters

callable $generator

function (Nette\DI\Compiler $compiler): string|null

mixed $key

Return Value

string

at line 47
string getClassName(mixed $key)

No description

Parameters

mixed $key

Return Value

string

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

No description

Parameters

string $class
callable $generator

Return Value

array

of (code, file[])

Traits

Strict class for better experience.