1 package Catalyst::ActionContainer;
4 use base qw/Class::Accessor::Fast/;
6 __PACKAGE__->mk_accessors(qw/part actions/);
10 # Stringify to path part for tree search
11 q{""} => sub { shift->{part} },
17 Catalyst::ActionContainer - Catalyst Action Container
25 This is a container for actions. The dispatcher sets up a tree of these
26 to represent the various dispatch points in your application.
30 =head2 get_action($name)
32 Returns an action from this container based on the action name, or undef
37 my ( $self, $name ) = @_;
38 return $self->actions->{$name} if defined $self->actions->{$name};
44 Accessor to the actions hashref, containing all actions in this container.
48 Accessor to the path part this container resolves to. Also what the container
57 This program is free software, you can redistribute it and/or modify it under
58 the same terms as Perl itself.