New Tutorial!
[catagits/Catalyst-Runtime.git] / lib / Catalyst.pm
index 8896db6..a998d42 100644 (file)
@@ -247,7 +247,7 @@ C<$c-E<gt>req-E<gt>args>. Upon returning from the function,
 C<$c-E<gt>req-E<gt>args> will be restored to the previous values.
 
 Any data C<return>ed from the action forwarded to, will be returned by the
-call to to forward.
+call to forward.
 
     my $foodata = $c->forward('/foo');
     $c->forward('index');
@@ -926,7 +926,7 @@ via $c->error.
 
 sub execute {
     my ( $c, $class, $code ) = @_;
-    $class = $c->components->{$class} || $class;
+    $class = $c->component($class) || $class;
     $c->state(0);
 
     if ( $c->debug ) {