NAME
Catalyst::Base - Catalyst Base Class
SYNOPSIS
See Catalyst
DESCRIPTION
Catalyst Base Class
This is the base class for all Catalyst components. It also handles dispatch of actions for controllers.
METHODS
$class->new($app, @args)
Proxies through to NEXT::new and stashes the application instance as $self->{application}.
$self->action_for('name')
Returns the Catalyst::Action object (if any) for a given method name in this component.
$self->action_namespace($c)
Returns the private namespace for actions in this component. Defaults to a value from the controller name (for e.g. MyApp::Controller::Foo::Bar becomes "foo/bar") or can be overriden from the "namespace" config key.
$self->path_prefix($c)
Returns the default path prefix for :Local, :LocalRegex and relative :Path actions in this component. Defaults to the action_namespace or can be overriden from the "path" config key.
$self->register_actions($c)
Finds all applicable actions for this component, creates Catalyst::Action objects (using $self->create_action) for them and registers them with $c->dispatcher.
$self->create_action(%args)
Called with a hash of data to be use for construction of a new Catalyst::Action (or appropriate sub/alternative class) object.
Primarily designed for the use of register_actions.
SEE ALSO
Catalyst, Catalyst::Controller.
AUTHOR
Sebastian Riedel, sri@cpan.org
Marcus Ramberg, mramberg@cpan.org
Matt S Trout, mst@shadowcatsystems.co.uk
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.