Pass script options into auto loader
Tomas Doran (t0m) [Sun, 27 Mar 2011 16:21:37 +0000 (16:21 +0000)]
Plack::Handler::XXX therefore gets the options even when auto-detecting.

lib/Catalyst/Engine.pm

index 650a142..a2cc178 100644 (file)
@@ -798,7 +798,7 @@ sub run {
         }
     }
     if (! $server ) {
-        $server = Catalyst::EngineLoader->new(application_name => ref($self))->auto();
+        $server = Catalyst::EngineLoader->new(application_name => ref($self))->auto(%$options);
         # We're not being called from a script, so auto detect what backend to
         # run on.  This should never happen, as mod_perl never calls ->run,
         # instead the $app->handle method is called per request.