X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FScriptRole.pm;h=f8a12da1583a10205008e1db28e62287f2764543;hp=797a0d7769f8607f8ec2ff7f9616dd816c38d23f;hb=e7399d8baa841cb6525daa2c20d88f70ba42474c;hpb=d0a1ec3671580e68252239b2ab5a503fc94b6ed8 diff --git a/lib/Catalyst/ScriptRole.pm b/lib/Catalyst/ScriptRole.pm index 797a0d7..f8a12da 100644 --- a/lib/Catalyst/ScriptRole.pm +++ b/lib/Catalyst/ScriptRole.pm @@ -5,6 +5,7 @@ use MooseX::Getopt; use Catalyst::EngineLoader; use Moose::Util::TypeConstraints; use Catalyst::Utils qw/ ensure_class_loaded /; +use Class::Load 'load_class'; use namespace::autoclean; subtype 'Catalyst::ScriptRole::LoadableClass', @@ -87,7 +88,7 @@ sub _plack_engine_name {} sub _run_application { my $self = shift; my $app = $self->application_name; - Class::MOP::load_class($app); + load_class($app); my $server; if (my $e = $self->_plack_engine_name ) { $server = $self->load_engine($e, $self->_plack_loader_args); @@ -126,7 +127,7 @@ The method invoked to run the application. =head2 print_usage_text -Prints out the useage text for the script you tried to invoke. +Prints out the usage text for the script you tried to invoke. =head1 ATTRIBUTES