-
-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
It was possible through specific parameters in Nette 2.3, why it was removed?
Is it possible somehow?
I have this piece of code implemented, which does what I need, but it is ugly hack. I would prefer a clean way.
public function generateContainer(DI\Compiler $compiler)
{
$containerCode = parent::generateContainer($compiler);
if (isset($this->containerParentClass)) {
// Hack :-(
$containerCode = str_replace('extends ' . DI\Container::class, 'extends ' . $this->containerParentClass, $containerCode);
}
return $containerCode;
}
fprochazka
Metadata
Metadata
Assignees
Labels
No labels