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

No description

Parameters

string $tempDirectory
bool $autoRebuild

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

No description

Parameters

mixed $key

Return Value

string

at line 113
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.