Marcus Ramberg > Catalyst-Plugin-Singleton-0.1 > Catalyst::Plugin::Singleton

Download:
Catalyst-Plugin-Singleton-0.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.1   Source   Latest Release: Catalyst-Plugin-Singleton-0.2

NAME ^

Catalyst::Plugin::Singleton - Singleton to context

SYNOPSIS ^

    use Catalyst qw[Singleton];

    # Retrieve a instance of context
    my $c = MyApp->instance;
    my $c = MyApp->context;

DESCRIPTION ^

Singleton accessors to context.

METHODS ^

context

alias for instance

instance

Returns the current instance of the context object.

OVERRIDES ^

prepare

SEE ALSO ^

Catalyst.

AUTHOR ^

Christian Hansen, ch@ngmedia.com

LICENSE ^

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.

syntax highlighting: