X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=09372ea7083b0331fda71a25fe2fb11bdcda59ab;hp=9cb2b3f52b4aa84afd82be0482f8b3b1e5f45cb7;hb=fbfacafd303a7ca1410b45e83ace4635e8a69da4;hpb=d8e0de58f51aa60a9f89fd70bdbee0539f7bc70e diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 9cb2b3f..09372ea 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -1817,7 +1817,7 @@ sub setup_components { ); for my $component ( sort { length $a <=> length $b } $locator->plugins ) { - require( join( '/', split( '::', $component ) ) . '.pm' ); + Catalyst::Utils::ensure_class_loaded( $component ); my $module = $class->setup_component( $component ); my %modules = (