push(@rows, [ '', $name ]);
}
- my $endpoint_arg_info;
+ my $endpoint_arg_info = $endpoint;
if($endpoint->has_args_constraints) {
my $tc = join ',', @{$endpoint->args_constraints};
$endpoint_arg_info .= " ($tc)";
!$best_action ||
@parts < @{$best_action->{parts}} ||
(
- !@parts &&
- defined($args_attr) &&
+ !@parts &&
+ defined($args_attr) &&
(
$args_count eq "0" &&
(
- ($c->config->{use_chained_args_0_special_case}||0) ||
+ ($c->config->{use_chained_args_0_special_case}||0) ||
(
exists($best_action->{args_count}) && defined($best_action->{args_count}) ?
($best_action->{args_count} ne 0) : 1
# in MyApp::Controller::Foo
sub bar : Chained CaptureArgs(1) { ... }
- # in MyApp::Controller::Foo::Moo
+ # in MyApp::Controller::Foo::Bar
sub bar : ChainedParent Args(1) { ... }
This builds a chain like C</bar/*/bar/*>.
its arguments. If it doesn't expect any, just specify
C<:CaptureArgs(0)>. The captures get passed to the action's C<@_> right
after the context, but you can also find them as array references in
-C<$c-E<gt>request-E<gt>captures-E<gt>[$level]>. The C<$level> is the
+C<< $c->request->captures->[$level] >>. The C<$level> is the
level of the action in the chain that captured the parts of the path.
An action that is part of a chain (that is, one that has a C<:Chained>
Just as with C<:CaptureArgs>, the arguments get passed to the action in
C<@_> after the context object. They can also be reached through
-C<$c-E<gt>request-E<gt>arguments>.
+C<< $c->request->arguments >>.
You should see 'Args' in L<Catalyst::Controller> for more details on using
type constraints in your Args declarations.