[Catalyst-commits] r9679 - in Catalyst-Runtime/5.80/trunk: .
lib/Catalyst
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Sun Apr 12 16:35:38 GMT 2009
Author: t0m
Date: 2009-04-12 17:35:38 +0100 (Sun, 12 Apr 2009)
New Revision: 9679
Modified:
Catalyst-Runtime/5.80/trunk/Changes
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Base.pm
Log:
Warnings from C::Base
Modified: Catalyst-Runtime/5.80/trunk/Changes
===================================================================
--- Catalyst-Runtime/5.80/trunk/Changes 2009-04-12 16:05:35 UTC (rev 9678)
+++ Catalyst-Runtime/5.80/trunk/Changes 2009-04-12 16:35:38 UTC (rev 9679)
@@ -61,6 +61,7 @@
This is more correct, and avoids metaclass incompatibility in complex
cases (t0m)
- Tests for this (t0m)
+ - Use of deprecated Catalyst::Base now warns. (t0m)
5.8000_06 2009-02-04 21:00
- Disallow writing to config after setup (rafl)
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Base.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Base.pm 2009-04-12 16:05:35 UTC (rev 9678)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Base.pm 2009-04-12 16:35:38 UTC (rev 9679)
@@ -1,9 +1,13 @@
package Catalyst::Base;
-
-use base qw/Catalyst::Controller/;
use Moose;
+BEGIN { extends 'Catalyst::Controller' }
no Moose;
+after 'BUILD' => sub {
+ my $self = shift;
+ warn(ref($self) . " is using the deprecated Catalyst::Base, update your application as this will be removed in the next major release");
+};
+
1;
__END__
@@ -15,8 +19,11 @@
=head1 DESCRIPTION
This used to be the base class for Catalyst Controllers. It
-remains here for compatibility reasons.
+remains here for compatibility reasons, but its use is highly deprecated.
+If your application produces a warning, then please update your application to
+inherit from L<Catalyst::Controller> instead.
+
=head1 SEE ALSO
L<Catalyst>, L<Catalyst::Controller>.
More information about the Catalyst-commits
mailing list