X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FView.pm;h=1e580c3a342b2cbba471bffe41840caf5984ff9b;hb=f3414019f472b55682ef3af53f761b6db7955887;hp=d9e884fa21290b3ac058405e004a9ed9e1635b12;hpb=76ddf86be66ed259d24226618a1d357e6f606fa1;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/View.pm b/lib/Catalyst/View.pm index d9e884f..1e580c3 100644 --- a/lib/Catalyst/View.pm +++ b/lib/Catalyst/View.pm @@ -1,7 +1,7 @@ package Catalyst::View; -use strict; -use base qw/Catalyst::Component/; +use Moose; +extends qw/Catalyst::Component/; =head1 NAME @@ -32,6 +32,26 @@ action's private name. (See L.) Implements the same methods as other Catalyst components, see L +=head2 process + +gives an error message about direct use. + +=cut + +sub process { + + Catalyst::Exception->throw( message => ( ref $_[0] || $_[0] ). + " directly inherits from Catalyst::View. You need to\n". + " inherit from a subclass like Catalyst::View::TT instead.\n" ); + +} + +=head2 $c->merge_hash_config( $hashref, $hashref ) + +Merges two hashes together recursively, giving right-hand precedence. + +=cut + =head1 AUTHOR Sebastian Riedel, C @@ -44,4 +64,7 @@ the same terms as Perl itself. =cut +no Moose; +#__PACKAGE__->meta->make_immutable(); + 1;