Remove warnings from duplicate action declerations
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Dump.pm
1 package TestApp::Controller::Dump;
2
3 use strict;
4 use base 'Catalyst::Controller';
5
6 sub default : Action {
7     my ( $self, $c ) = @_;
8     $c->forward('TestApp::View::Dump');
9 }
10
11 sub env : Action Relative {
12     my ( $self, $c ) = @_;
13     $c->forward('TestApp::View::Dump::Env');
14 }
15
16 sub request : Action Relative {
17     my ( $self, $c ) = @_;
18     $c->req->params(undef); # Should be a no-op, and be ignored.
19                             # Back compat test for 5.7
20     $c->forward('TestApp::View::Dump::Request');
21 }
22
23 sub response : Action Relative {
24     my ( $self, $c ) = @_;
25     $c->forward('TestApp::View::Dump::Response');
26 }
27
28 sub body : Action Relative {
29     my ( $self, $c ) = @_;
30     $c->forward('TestApp::View::Dump::Body');
31 }
32
33 1;