Fixed restarter by backing out Class::C3 fix
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Helper.pm
index 014fc5f..81ddc02 100644 (file)
@@ -803,7 +803,9 @@ if ( $debug ) {
     $ENV{CATALYST_DEBUG} = 1;
 }
 
-use [% name %];
+# This is require instead of use so that the engine may be
+# changed above for Restarter support.
+require [% name %];
 
 [% name %]->run( $port, $host, {
     argv          => \@argv,