start using Class::C3, may need to add a reinitalize bit later, not sure
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / HTTP / Restarter.pm
index 30cb9e4..6b1b5f5 100644 (file)
@@ -1,10 +1,11 @@
 package Catalyst::Engine::HTTP::Restarter;
 
-use strict;
-use warnings;
-use base 'Catalyst::Engine::HTTP';
+use Class::C3;
+use Moose;
+extends 'Catalyst::Engine::HTTP';
+no Moose;
+
 use Catalyst::Engine::HTTP::Restarter::Watcher;
-use NEXT;
 
 sub run {
     my ( $self, $class, $port, $host, $options ) = @_;
@@ -23,6 +24,7 @@ sub run {
                 $options->{restart_directory} || 
                 File::Spec->catdir( $FindBin::Bin, '..' )
             ),
+            follow_symlinks => $options->{follow_symlinks},
             regex     => $options->{restart_regex},
             delay     => $options->{restart_delay},
         );
@@ -66,8 +68,8 @@ sub run {
         }
     }
 
-    return $self->NEXT::run( $class, $port, $host, $options );
-}
+    return $self->next::method( $class, $port, $host, $options );
+};
 
 1;
 __END__