added Catalyst->engine
Christian Hansen [Tue, 22 Mar 2005 23:09:37 +0000 (23:09 +0000)]
lib/Catalyst.pm

index f0638c1..e622d7f 100644 (file)
@@ -5,7 +5,7 @@ use base 'Class::Data::Inheritable';
 use UNIVERSAL::require;
 use Catalyst::Log;
 
-__PACKAGE__->mk_classdata($_) for qw/_config log/;
+__PACKAGE__->mk_classdata($_) for qw/_config engine log/;
 
 our $VERSION = '4.33';
 our @ISA;
@@ -194,9 +194,14 @@ sub import {
         no strict 'refs';
         push @{"$caller\::ISA"}, $engine;
     }
+    $caller->engine($engine);
     $caller->log->debug(qq/Loaded engine "$engine"/) if $caller->debug;
 }
 
+=item $c->engine
+
+Contains the engine class.
+
 =item $c->log
 
 Contains the logging object.  Unless it is already set Catalyst sets this up with a