X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FBase.pm;h=1dca5c91c7721684476005104b475c6869a18dfe;hb=fb0c5b21c3c972bc88b8c6c481f9937f31658a23;hp=c368fa8fd29bcaf7e2b675dc02f421f259ae4715;hpb=2f3812528068bc1d9f7840067f0c03d36cd47e6d;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Base.pm b/lib/Catalyst/Base.pm index c368fa8..1dca5c9 100644 --- a/lib/Catalyst/Base.pm +++ b/lib/Catalyst/Base.pm @@ -1,7 +1,12 @@ package Catalyst::Base; - -use base qw/Catalyst::Controller/; use Moose; +BEGIN { extends 'Catalyst::Controller' } + +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"); +}; + no Moose; 1; @@ -15,7 +20,10 @@ Catalyst::Base - Deprecated base class =head1 DESCRIPTION This used to be the base class for Catalyst Controllers. It -remains here for compability 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 instead. =head1 SEE ALSO @@ -27,7 +35,7 @@ Catalyst Contributors, see Catalyst.pm =head1 COPYRIGHT -This program is free software, you can redistribute it and/or modify it under +This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. =cut