X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FBase.pm;h=63b9ba6bc4577155a901d12317e022521ba59b7f;hb=2c527b9130ee042eaa8e5996f565c75764d18117;hp=e6bd82179e2710b890b834dbe58475c90c80a8fd;hpb=0bf7ab7160f4f2fd0f00cd3d53ac311e9ad50241;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Base.pm b/lib/Catalyst/Base.pm index e6bd821..63b9ba6 100644 --- a/lib/Catalyst/Base.pm +++ b/lib/Catalyst/Base.pm @@ -1,7 +1,13 @@ package Catalyst::Base; +use Moose; +BEGIN { extends 'Catalyst::Controller' } -use strict; -use base qw/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; @@ -14,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