sub make_app { my $factory = __PACKAGE__->new(@_); $factory->inject('/app' => 'Sprog'); return $factory->make_class('/app', factory => $factory); }
- Approximately equivalent to:
Sprog->new();
sub make_app { my $factory = __PACKAGE__->new(@_); $factory->inject('/app' => 'Sprog'); return $factory->make_class('/app', factory => $factory); }
Sprog->new();