X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FContainer.pm;h=3a790a1045bfab8c5b095ae56970f7d440c2e403;hb=c733a6d618ff13765f3dd58911d164fca6431bf2;hp=3a028a61454efe93747d87dabe0f91677b7acb66;hpb=2832ecea1f0b0fdfa6873ec9896523b72af01b77;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Container.pm b/lib/Catalyst/Container.pm index 3a028a6..3a790a1 100644 --- a/lib/Catalyst/Container.pm +++ b/lib/Catalyst/Container.pm @@ -393,4 +393,9 @@ sub _config_substitutions { return $arg; } +sub get_component { + my ( $self, $type, $name, $args ) = @_; + return $self->get_sub_container($type)->resolve( service => $name, parameters => { context => $args } ); +} + 1;