Ambrosia::Context - a context of application.
version 0.010
use Ambrosia::Context; instance Ambrosia::Context( proxy => $URI ) ->on_start( sub { instance Ambrosia::Plugin::Session(storage => new Ambrosia::Plugin::Session::Cookie()) } ) ->on_abort( sub {session->destroy} ) ->on_finish( sub {session->destroy} );
Ambrosia::Context is a context of application.
Ambrosia::Context
Creates an object of type of Ambrosia::Context.
Destroys a context. You must call this method when session finished.
Returns global an object of type of Ambrosia::Context.
Not tested.
Please report bugs relevant to Ambrosia to <knm[at]cpan.org>.
Ambrosia
Copyright (C) 2010-2012 Nickolay Kuritsyn. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Nikolay Kuritsyn (knm[at]cpan.org)
To install Ambrosia, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ambrosia
CPAN shell
perl -MCPAN -e shell install Ambrosia
For more information on module installation, please visit the detailed CPAN module installation guide.