projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
isolating repeated code
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
Container.pm
diff --git
a/lib/Catalyst/Container.pm
b/lib/Catalyst/Container.pm
index
3a028a6
..
3a790a1
100644
(file)
--- 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;