Fixed typo in Engine::HTTP warning message
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / HTTP.pm
index 4ec9fb3..b708a7f 100644 (file)
@@ -1,44 +1,23 @@
-package Catalyst::Engine::HTTP;
-
+package # Hide from PAUSE
+    Catalyst::Engine::HTTP;
 use strict;
-use base 'Catalyst::Engine::HTTP::Daemon';
-
-=head1 NAME
-
-Catalyst::Engine::HTTP - Catalyst HTTP Engine
-
-=head1 SYNOPSIS
-
-A script using the Catalyst::Engine::HTTP module might look like:
-
-    #!/usr/bin/perl -w
+use warnings;
 
-    BEGIN {  $ENV{CATALYST_ENGINE} = 'HTTP' }
+use base 'Catalyst::Engine';
 
-    use strict;
-    use lib '/path/to/MyApp/lib';
-    use MyApp;
+warn("You are loading Catalyst::Engine::HTTP explicitly.
 
-    MyApp->run;
+This is almost certainly a bad idea, as Catalyst::Engine::HTTP
+has been removed in this version of Catalyst.
 
-=head1 DESCRIPTION
+Please update your application's scripts with:
 
-This is the Catalyst engine specialized for development and testing.
+  catalyst.pl -force -scripts MyApp
 
-=head1 SEE ALSO
+to update your scripts to not do this.\n") unless $ENV{HARNESS_ACTIVE};
 
-L<Catalyst>, L<Catalyst::Engine>, L<Catalyst::Engine::HTTP::Daemon>.
-
-=head1 AUTHOR
-
-Sebastian Riedel, C<sri@cpan.org>
-Christian Hansen, C<ch@ngmedia.com>
-
-=head1 COPYRIGHT
+1;
 
-This program is free software, you can redistribute it and/or modify it under
-the same terms as Perl itself.
+# This is here only as some old generated scripts require Catalyst::Engine::HTTP
 
-=cut
 
-1;