drop namespace::autoclean
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Action / TestActionArgsFromConstructor.pm
CommitLineData
bf7c9c87 1package TestApp::Action::TestActionArgsFromConstructor;
2
3use Moose;
eefc03e1 4use namespace::clean -except => [ 'meta' ];
bf7c9c87 5
6extends 'Catalyst::Action';
7
8has [qw/extra_arg another_extra_arg/] => ( is => 'ro' );
9
10after execute => sub {
11 my ($self, $controller, $ctx) = @_;
12 $ctx->response->header('X-TestExtraArgsAction' => join q{,} => $self->extra_arg, $self->another_extra_arg);
13};
14
15__PACKAGE__->meta->make_immutable;
16
171;
18