X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FBase.pm;h=401f335f04c0ee73f99b3041684fcff0ba74e661;hp=24f730eff1d3fe4e775b74f6d1b692b81b833e4e;hb=b0ff1be8caade25b5485bf174f0224b2066a3b8f;hpb=e5ecd5bc38bac3e2fcfaf643ea2a4c6ab46d7e57 diff --git a/lib/Catalyst/Base.pm b/lib/Catalyst/Base.pm index 24f730e..401f335 100644 --- a/lib/Catalyst/Base.pm +++ b/lib/Catalyst/Base.pm @@ -1,8 +1,15 @@ package Catalyst::Base; - use Moose; -BEGIN{ extends qw/Catalyst::Controller/ }; +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; + +__PACKAGE__->meta->make_immutable; 1; @@ -15,21 +22,22 @@ 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 L, L. -=head1 AUTHOR +=head1 AUTHORS -Sebastian Riedel, C -Marcus Ramberg, C -Matt S Trout, C +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