File: Plugin.pm

package info (click to toggle)
libcatalyst-engine-apache-perl 1.12-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 700 kB
  • ctags: 498
  • sloc: perl: 6,003; makefile: 45
file content (29 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package Catalyst::Plugin::Test::Plugin;

use strict;

use base qw/Catalyst::Base Class::Data::Inheritable/;

 __PACKAGE__->mk_classdata('ran_setup');

sub setup {
   my $c = shift;
   $c->ran_setup('1');
}

sub  prepare {

    my $class = shift;

    my $c = $class->NEXT::prepare(@_);
    $c->response->header( 'X-Catalyst-Plugin-Setup' => $c->ran_setup );

    return $c;

}

sub end : Private {
    my ($self,$c) = @_;
}

1;