1 package Catalyst::IOC::LifeCycle::Request;
3 use namespace::autoclean;
5 with 'Bread::Board::LifeCycle';
11 my $instance = $self->$orig(@_);
13 my $ctx = $self->param('ctx')
14 or confess qq/This component has a Request lifecycle.\n/ .
15 qq/The 'ctx' parameter is mandatory./;
17 my $stash_key = "__Catalyst_IOC_LifeCycle_Request_" . $self->name;
18 return $ctx->stash->{$stash_key} ||= $instance;
29 Catalyst::IOC::LifeCycle::Request - Components that last for one request
39 Catalyst Contributors, see Catalyst.pm
43 This library is free software. You can redistribute it and/or modify it under
44 the same terms as Perl itself.