X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=3bf7e4d971e3393083ec3646edb65883ac8ebac7;hb=51f0308d123198167a88df51ea7c8ef3ac8efd2c;hp=243f473af98080c85e60b232b50728a2ea397324;hpb=10dd68969b311a61e17dd130373909f2c7aaeb93;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 243f473..3bf7e4d 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -13,7 +13,7 @@ our $CATALYST_SCRIPT_GEN = 4; __PACKAGE__->mk_classdata($_) for qw/arguments dispatcher engine log/; -our $VERSION = '5.24'; +our $VERSION = '5.31'; our @ISA; =head1 NAME @@ -126,16 +126,16 @@ Returns a hashref containing your applications settings. sub import { my ( $class, @arguments ) = @_; + + # We have to limit $class to Catalyst to avoid pushing Catalyst upon every + # callers @ISA. + return unless $class eq 'Catalyst'; my $caller = caller(0); - - # Prepare inheritance - unless ( $caller->isa($class) ) { - + + unless ( $caller->isa('Catalyst') ) { no strict 'refs'; push @{"$caller\::ISA"}, $class; - - *{"$caller\::import"} = sub { 1 }; } $caller->arguments( [ @arguments ] ); @@ -196,6 +196,15 @@ sub plugin { =back +=head1 CASE SENSITIVITY + +By default Catalyst is not case sensitive, so C becomes +C. + +But you can activate case sensitivity with a config parameter. + + MyApp->config->{case_sensitive} = 1; + =head1 LIMITATIONS mod_perl2 support is considered experimental and may contain bugs. @@ -233,17 +242,53 @@ Web: =back -=head1 AUTHOR +=head1 CREDITS -Sebastian Riedel, C +Andy Grundman + +Andrew Ford + +Andrew Ruthven + +Autrijus Tang + +Christian Hansen + +Christopher Hicks + +Dan Sully + +Danijel Milicevic -=head1 THANK YOU +David Naughton -Andy Grundman, Andrew Ford, Andrew Ruthven, Autrijus Tang, Christian Hansen, -Christopher Hicks, Dan Sully, Danijel Milicevic, David Naughton, -Gary Ashton Jones, Geoff Richards, Jesse Sheidlower, Jody Belka, -Johan Lindstrom, Juan Camacho, Leon Brocard, Marcus Ramberg, -Tatsuhiko Miyagawa and all the others who've helped. +Gary Ashton Jones + +Geoff Richards + +Jesse Sheidlower + +Jody Belka + +Johan Lindstrom + +Juan Camacho + +Leon Brocard + +Marcus Ramberg + +Matt S Trout + +Sebastian Riedel + +Tatsuhiko Miyagawa + +Ulf Edvinsson + +=head1 AUTHOR + +Sebastian Riedel, C =head1 LICENSE