X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=7523068e30bf46df92e8fbb68e8fd7270968e747;hb=599b52952b28f527af103cdf9f134b09ccd522e3;hp=243f473af98080c85e60b232b50728a2ea397324;hpb=10dd68969b311a61e17dd130373909f2c7aaeb93;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 243f473..7523068 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -127,6 +127,8 @@ Returns a hashref containing your applications settings. sub import { my ( $class, @arguments ) = @_; + return unless $class eq 'Catalyst'; + my $caller = caller(0); # Prepare inheritance @@ -135,7 +137,6 @@ sub import { no strict 'refs'; push @{"$caller\::ISA"}, $class; - *{"$caller\::import"} = sub { 1 }; } $caller->arguments( [ @arguments ] ); @@ -196,6 +197,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.