unless ($result) {
- my $class = ref($command) || ref($c->component($command));
- my $method = shift || 'process';
+ my $class = ref($command) || ref( $c->component($command) );
+ my $method = shift || 'process';
- unless ( $class ) {
+ unless ($class) {
my $error =
qq/Couldn't forward to command "$command". Invalid action or component./;
$c->error($error);
# should catch any failures - or short-circuit this if this *is* a
# bug in the visitor and gets fixed.
- if (my $extra = $path[ ( scalar @match ) - 1 ]) {
+ if ( my $extra = $path[ ( scalar @match ) - 1 ] ) {
$visitor->setSearchPath($extra);
$match[-1]->accept($visitor);
push( @match, $visitor->getResult ) if defined $visitor->getResult;
Catalyst::ActionContainer->new( { part => '/', actions => {} } );
$self->tree( Tree::Simple->new( $container, Tree::Simple->ROOT ) );
- $c->register_actions($c);
-
foreach my $comp ( values %{ $c->components } ) {
$comp->register_actions($c) if $comp->can('register_actions');
}