X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FSubContainer.pm;h=6d58be94ecb6267dfb7a4be02fe26b8a3270dbda;hb=4f38bf4bf475178576b5fef4c7b19d122e4a1122;hp=6dc29dc10c8dc21ce33a228e07f3dacd924fbf9a;hpb=d057ddb9fea20c073a2307d22e530916a88443bc;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/SubContainer.pm b/lib/Catalyst/SubContainer.pm index 6dc29dc..6d58be9 100644 --- a/lib/Catalyst/SubContainer.pm +++ b/lib/Catalyst/SubContainer.pm @@ -7,7 +7,11 @@ extends 'Bread::Board::Container'; sub get_component { my ( $self, $name, $args ) = @_; - return $self->resolve( service => $name, parameters => { context => $args } ); + + return $self->resolve( + service => $name, + parameters => { accept_context_args => $args }, + ); } sub get_component_regexp { @@ -38,3 +42,28 @@ sub get_component_regexp { } 1; + +__END__ + +=pod + +=head1 NAME + +Catalyst::SubContainer - Container for models, controllers and views + +=head1 METHODS + +=head2 get_component + +=head2 get_component_regexp + +=head1 AUTHORS + +Catalyst Contributors, see Catalyst.pm + +=head1 COPYRIGHT + +This library is free software. You can redistribute it and/or modify it under +the same terms as Perl itself. + +=cut