minor fixes
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Context.pm
CommitLineData
54642e5a 1package Catalyst::Context;
2
3use Moose;
4
54642e5a 5has action => (is => 'rw');
6has counter => (is => 'rw', default => sub { {} });
7has namespace => (is => 'rw');
8has request_class => (is => 'ro', default => 'Catalyst::Request');
9has request => (is => 'rw', default => sub { $_[0]->request_class->new({}) }, required => 1, lazy => 1);
10has response_class => (is => 'ro', default => 'Catalyst::Response');
11has response => (is => 'rw', default => sub { $_[0]->response_class->new({}) }, required => 1, lazy => 1);
12has stack => (is => 'ro', default => sub { [] });
13has stash => (is => 'rw', default => sub { {} });
14has state => (is => 'rw', default => 0);
15has stats => (is => 'rw');
16
54642e5a 17no Moose;
18
19__PACKAGE__->meta->make_immutable;
20
211;
22
23__END__
24
25=head1 NAME
26
27Catalyst::Context - object for keeping request related state
28
29=head1 ATTRIBUTES
30
31=head3 action
32
33=head3 counter
34
35=head3 namespace
36
37=head3 request_class
38
39=head3 request
40
41=head3 response_class
42
43=head3 response
44
45=head3 stack
46
47=head3 stash
48
49=head3 state
50
51=head3 stats
52
53=head1 SEE ALSO
54
55L<Catalyst>, L<Catalyst::Model>, L<Catalyst::View>, L<Catalyst::Controller>.
56
57=head1 AUTHORS
58
59Catalyst Contributors, see Catalyst.pm
60
61=head1 COPYRIGHT
62
63This library is free software. You can redistribute it and/or modify it under
64the same terms as Perl itself.
65
66=cut
67