Switched to Module::Install
[catagits/Catalyst-Runtime.git] / t / lib / Catalyst / Plugin / Test / Plugin.pm
CommitLineData
fbcc39ad 1package Catalyst::Plugin::Test::Plugin;
2
3use strict;
4
01ba879f 5use base qw/Catalyst::Base Class::Data::Inheritable/;
fbcc39ad 6
7 __PACKAGE__->mk_classdata('ran_setup');
8
9sub setup {
10 my $c = shift;
11 $c->ran_setup('1');
12}
13
14sub prepare {
15
16 my $class = shift;
17
18 my $c = $class->NEXT::prepare(@_);
19 $c->response->header( 'X-Catalyst-Plugin-Setup' => $c->ran_setup );
20
21 return $c;
22
23}
24
01ba879f 25sub end : Private {
26 my ($self,$c) = @_;
27}
28
fbcc39ad 291;