1 package TestApp::Controller::Action::Action;
4 use base 'TestApp::Controller::Action';
8 '*' => { extra_attribute => 13 },
9 action_action_five => { ActionClass => '+Catalyst::Action::TestBefore' },
10 action_action_eight => { another_extra_attribute => 'foo' },
13 '*' => { extra_arg => 42 },
14 action_action_seven => { another_extra_arg => 23 },
18 sub action_action_one : Global : ActionClass('TestBefore') {
19 my ( $self, $c ) = @_;
20 $c->res->header( 'X-Action', $c->stash->{test} );
21 $c->forward('TestApp::View::Dump::Request');
24 sub action_action_two : Global : ActionClass('TestAfter') {
25 my ( $self, $c ) = @_;
26 $c->stash->{after_message} = 'awesome';
27 $c->forward('TestApp::View::Dump::Request');
30 sub action_action_three : Global : ActionClass('+TestApp::Action::TestBefore') {
31 my ( $self, $c ) = @_;
32 $c->forward('TestApp::View::Dump::Request');
35 sub action_action_four : Global : MyAction('TestMyAction') {
36 my ( $self, $c ) = @_;
37 $c->forward('TestApp::View::Dump::Request');
40 sub action_action_five : Global {
41 my ( $self, $c ) = @_;
42 $c->res->header( 'X-Action', $c->stash->{test} );
43 $c->forward('TestApp::View::Dump::Request');
46 sub action_action_six : Global : ActionClass('~TestMyAction') {
47 my ( $self, $c ) = @_;
48 $c->forward('TestApp::View::Dump::Request');
51 sub action_action_seven : Global : ActionClass('~TestExtraArgsAction') {
52 my ( $self, $c ) = @_;
53 $c->forward('TestApp::View::Dump::Request');
56 sub action_action_eight : Global {
57 my ( $self, $c ) = @_;
58 $c->forward('TestApp::View::Dump::Action');
61 sub action_action_nine : Global : ActionClass('~TestActionArgsFromConstructor') {
62 my ( $self, $c ) = @_;
63 $c->forward('TestApp::View::Dump::Request');