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

No description

Parameters

string $tempDirectory
bool $autoRebuild

at line 30
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 41
string getClassName(mixed $key)

No description

Parameters

mixed $key

Return Value

string

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

No description

Parameters

string $class
callable $generator

Return Value

array

of (code, file[])