Closed alganet closed 11 years ago
Seems do-able...
$r1 = $container->router; // new instance of Router
$r2 = $container->router; // a brand new instance of Router
I guess I've already implemented this and forgot the issue opened:
:cloud:
A declarative way of creating builders with Config would be:
Any call to
$container->router
would lead to a new instance, avoiding reuse. Difference from current syntax is thenew
keyword.