removed all required => 0
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / FastCGI.pm
index 033cf06..9ef4f63 100644 (file)
@@ -5,7 +5,7 @@ use FindBin qw/$Bin/;
 use lib "$Bin/../lib";
 use Pod::Usage;
 use Moose;
-use namespace::clean -except => [ qw(meta) ];
+use namespace::autoclean -except => [ qw(meta) ];
 
 with 'MooseX::Getopt';
 
@@ -25,7 +25,7 @@ sub run {
     pod2usage() if $self->help;
     my $app = $self->app;
     Class::MOP::load_class($app);
-    $app->new(
+    $app->run(
         $self->listen,
         {  
             nproc   => $self->nproc,