X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FUtils.pm;h=e791b4ad7070178ea8370bfc5a3a0bba49bd8067;hp=76f07335354bd92abb97f9b5bfb576f71fa0f708;hb=5d8129e9b7bea385dd6fda9b490e7923f61eedd0;hpb=a8f4e833e16a5d2f034afbaf3a94ecdb475ec9cb diff --git a/lib/Catalyst/Utils.pm b/lib/Catalyst/Utils.pm index 76f0733..e791b4a 100644 --- a/lib/Catalyst/Utils.pm +++ b/lib/Catalyst/Utils.pm @@ -392,10 +392,11 @@ Method which adds the namespace for plugins and actions. sub resolve_namespace { + my $appnamespace = shift; my $namespace = shift; my @classes = @_; return String::RewritePrefix->rewrite( - { '' => $namespace.'::', '+' => '' }, @classes, + { '' => $namespace.'::', '+' => '', '~' => $appnamespace . '::' }, @classes, ); }