X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=f2a9228bd0d444805abb8a789e90ab7196c3b55e;hb=2b519e00dd97e258a45c5b625312534d934a8c06;hp=3928ce9946aa615951c3abe558cada385834cca4;hpb=8cdcc73c0df4e5f58f6d81abd9c3fbd1c15354bf;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 3928ce9..f2a9228 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -758,7 +758,7 @@ sub view { my $container = $c->container->get_sub_container('view'); if ($container->has_service($check)) { - return $c->_filter_component( $container->get_service($check)->get, @args ); + return $c->_filter_component( $container->resolve(service => $check), @args ); } else { $c->log->warn( "Attempted to use view '$check', but does not exist" );