Restartable app class on perl 5.10. More evil hackery..
[catagits/Catalyst-Runtime.git] / lib / Catalyst.pm
index 52b7787..91239c4 100644 (file)
@@ -1055,10 +1055,11 @@ EOF
     }
 
     # Call plugins setup, this is stupid and evil.
+    # Also screws C3 badly on 5.10, hack to avoid.
     {
         no warnings qw/redefine/;
         local *setup = sub { };
-        $class->setup;
+        $class->setup unless $Catalyst::__AM_RESTARTING;
     }
 
     # Initialize our data structure