Jesse Luehrs > OX > Bread::Board::LifeCycle::Request

Download:
OX-0.14.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.14   Source  

NAME ^

Bread::Board::LifeCycle::Request - lifecycle for request-scoped services

VERSION ^

version 0.14

SYNOPSIS ^

  service Controller => (
      class     => 'MyApp::Controller',
      lifecycle => 'Request',
  );

or, with Bread::Board::Declare:

  has controller => (
      is        => 'ro',
      isa       => 'MyApp::Controller',
      lifecycle => 'Request',
  );

DESCRIPTION ^

This implements a request-scoped lifecycle for Bread::Board. Services with this lifecycle will persist throughout a single request as though they were a Singleton, but they will be cleared when the request is finished.

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 by Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: