X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=62dc3bcf3c8894869d40ff00f0b4b7e3de9e818d;hb=6db8aa1d6fcd8b008971db965bf8e3190216b77b;hp=c8e9c7c8aad4bd44c38bba69e84d9fe7cd2152dc;hpb=4ee03d727423d0eab446e173ceb882163bc58f48;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index c8e9c7c..62dc3bc 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -750,9 +750,9 @@ Start the engine. Implemented by the various engine classes. =cut sub run { - my ($self, $app, @args) = @_; + my ($self, $app, $server, @args) = @_; # FIXME - Do something sensible with the options we're passed - $self->_run_psgi_app($self->_build_psgi_app($app, @args), @args); + $server->run($self->_build_psgi_app($app, @args)); } sub _build_psgi_app { @@ -781,12 +781,6 @@ sub _build_psgi_app { return $psgi_app; } -sub _run_psgi_app { - my ($self, $psgi_app, @args) = @_; - # FIXME - Need to be able to specify engine and pass options.. - Plack::Loader->auto(port => $args[0])->run($psgi_app); -} - =head2 $self->write($c, $buffer) Writes the buffer to the client.