X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=e2fac8af3dcd5421adc9758637f25800a954d08d;hb=87e670212e786afa0172859b34046a58ec4505ab;hp=8197e79cd50d734405380209b7e2f1577f07d025;hpb=9ada3267f9ef5287152340b192a00be0742a26ab;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 8197e79..e2fac8a 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -7,7 +7,7 @@ use Catalyst::Log; __PACKAGE__->mk_classdata($_) for qw/_config engine log/; -our $VERSION = '4.34'; +our $VERSION = '5.00'; our @ISA; =head1 NAME @@ -141,15 +141,9 @@ sub import { my ( $self, @options ) = @_; my $caller = caller(0); - # Class - { + unless ( $caller->isa($self) ) { no strict 'refs'; - *{"$caller\::handler"} = - sub { Catalyst::Engine::handler( $caller, @_ ) }; - - unless ( $caller->isa($self) ) { - push @{"$caller\::ISA"}, $self; - } + push @{"$caller\::ISA"}, $self; } unless ( $caller->log ) {