=cut
-sub get_action { my $c = shift; $c->dispatcher->get_action( $c, @_ ) }
+sub get_action { my $c = shift; $c->dispatcher->get_action( @_ ) }
=item $c->get_actions( $action, $namespace )
=cut
sub get_action {
- my ( $self, $c, $name ) = @_;
+ my ( $self, $name ) = @_;
return $self->actions->{$name} if defined $self->actions->{$name};
return;
}
if ( $c->debug && @args );
}
-=item $self->get_action( $c, $action, $namespace )
+=item $self->get_action( $action, $namespace )
=cut
sub get_action {
- my ( $self, $c, $name, $namespace ) = @_;
+ my ( $self, $name, $namespace ) = @_;
return unless $name;
$namespace ||= '';
$namespace = '' if $namespace eq '/';
return unless @match;
- if ( my $action = $match[-1]->get_action( $c, $name ) ) {
+ if ( my $action = $match[-1]->get_action( $name ) ) {
return $action if $action->namespace eq $namespace;
}
}
my @match = $self->get_containers($namespace);
- return map { $_->get_action( $c, $action ) } @match;
+ return map { $_->get_action( $action ) } @match;
}
=item $self->get_containers( $namespace )