Parameterized Containers
file: code/ParameterizedContainer/MyBB.pm 10: my $apps = container 'CouchPotatoe' => ['Env'] => as { 11: service 'FindNewSeries' => ( 12: class => 'FindNewSeries', 13: dependencies => { 14: ua => '/Env/UserAgent', 15: formatter => '/Component/Number-Format', 16: renderer => '/Env/Renderer', 17: } 18: );
we can now reference the 'Env' container even though it's not defined here.