Catalyst::Plugin::Singleton - Singleton to context


Catalyst-Plugin-Singleton documentation  | view source Contained in the Catalyst-Plugin-Singleton distribution.

Index


NAME

Top

Catalyst::Plugin::Singleton - Singleton to context

SYNOPSIS

Top

    use Catalyst qw[Singleton];

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




DESCRIPTION

Top

Singleton accessors to context.

METHODS

Top

context

alias for instance

instance

Returns the current instance of the context object.

OVERRIDES

Top

prepare

SEE ALSO

Top

Catalyst.

AUTHOR

Top

Christian Hansen, ch@ngmedia.com

LICENSE

Top

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


Catalyst-Plugin-Singleton documentation  | view source Contained in the Catalyst-Plugin-Singleton distribution.