bye bye Class::C3. for good.
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / HTTP / Restarter.pm
index 8e5c8c0..4691cad 100644 (file)
@@ -2,6 +2,7 @@ package Catalyst::Engine::HTTP::Restarter;
 
 use Moose;
 extends 'Catalyst::Engine::HTTP';
+
 use Catalyst::Engine::HTTP::Restarter::Watcher;
 
 around run => sub {
@@ -18,8 +19,8 @@ around run => sub {
         close STDOUT;
 
         my $watcher = Catalyst::Engine::HTTP::Restarter::Watcher->new(
-            directory => (
-                $options->{restart_directory} ||
+            directory => ( 
+                $options->{restart_directory} || 
                 File::Spec->catdir( $FindBin::Bin, '..' )
             ),
             follow_symlinks => $options->{follow_symlinks},
@@ -67,6 +68,7 @@ around run => sub {
     }
 
     return $self->$orig( $class, $port, $host, $options );
+    no Moose;
 };
 
 1;