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