Changelog up to date, make comment re NEXT in the tests more clear, update TODO list...
[catagits/Catalyst-Runtime.git] / t / lib / Catalyst / Plugin / Test / Plugin.pm
1 package Catalyst::Plugin::Test::Plugin;
2
3 use strict;
4
5 use base qw/Catalyst::Base Class::Data::Inheritable/;
6
7  __PACKAGE__->mk_classdata('ran_setup');
8
9 no warnings 'Class::C3::Adopt::NEXT';
10
11 sub setup {
12    my $c = shift;
13    $c->ran_setup('1');
14 }
15
16 sub  prepare {
17
18     my $class = shift;
19
20 # Note: This use of NEXT is deliberately left here (without a use NEXT)
21 #       to ensure back compat, as NEXT always used to be loaded, but 
22 #       is now replaced by Class::C3::Adopt::NEXT.
23     my $c = $class->NEXT::prepare(@_);
24     $c->response->header( 'X-Catalyst-Plugin-Setup' => $c->ran_setup );
25
26     return $c;
27
28 }
29
30 sub end : Private {
31     my ($self,$c) = @_;
32 }
33
34 1;