X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngineLoader.pm;h=36cf0168b5b27ef1dfca243cc860911cc14e2719;hb=20fe4e3c1146e3e61156e6c2f3ce0c0cdb3e9eb6;hp=f2b999ae997aac7db23a8ed45075484c468ffa13;hpb=7b841c03798403d6ce9dbeb6c02c45b642d63135;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/EngineLoader.pm b/lib/Catalyst/EngineLoader.pm index f2b999a..36cf016 100644 --- a/lib/Catalyst/EngineLoader.pm +++ b/lib/Catalyst/EngineLoader.pm @@ -39,7 +39,20 @@ sub _guess_catalyst_engine_class { if (!defined $old_engine) { return 'Catalyst::Engine'; } - elsif ($old_engine =~ /^(PSGI|CGI|FastCGI|HTTP|Apache.*)$/) { + elsif ($old_engine eq 'PSGI') { + ## If we are running under plackup let the Catalyst::Engine::PSGI + ## continue to run, but warn. + warn <<"EOW"; +You are running Catalyst::Engine::PSGI, which is considered a legacy engine for +this version of Catalyst. We will continue running and use your existing psgi +file, but it is recommended to perform the trivial upgrade process, which will +leave you with less code and a forward path. + +Please review Catalyst::Upgrading +EOW + return 'Catalyst::Engine::' . $old_engine; + } + elsif ($old_engine =~ /^(CGI|FastCGI|HTTP|Apache.*)$/) { return 'Catalyst::Engine'; } else {