Fix my retardedness with ::MVC:: warning having no conditional. Pull all the stuff...
[catagits/Catalyst-Runtime.git] / t / lib / Catalyst / Plugin / Test / Deprecated.pm
CommitLineData
19a24dbb 1package Catalyst::Plugin::Test::Deprecated;
2
3use strict;
4use warnings;
5use NEXT;
6
7use base qw/Catalyst::Base/;
8
9sub prepare {
10 my $class = shift;
11 # Note: This use of NEXT is deliberately left here (without a use NEXT)
12 # to ensure back compat, as NEXT always used to be loaded, but
13 # is now replaced by Class::C3::Adopt::NEXT.
14 my $c = $class->NEXT::prepare(@_);
15 $c->response->header( 'X-Catalyst-Plugin-Deprecated' => 1 );
16
17 return $c;
18}
19
201;