Store the script options in the engine.
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine.pm
index 23a1d3f..2a5f5f7 100644 (file)
@@ -46,8 +46,8 @@ has _response_cb => (
 );
 
 subtype 'Catalyst::Engine::Types::Writer',
-    as duck_type([qw(write close)]),
-    where { 1 };
+    as duck_type([qw(write close)]);
+
 has _writer => (
     is      => 'ro',
     isa     => 'Catalyst::Engine::Types::Writer',
@@ -833,6 +833,7 @@ sub run {
         # instead the $app->handle method is called per request.
         $app->log->warn("Not supplied a Plack engine, falling back to engine auto-loader (are your scripts ancient?)")
     }
+    $app->run_options($options);
     $server->run($psgi, $options);
 }