Daisuke Maki > Gungho-0.09008 > Gungho::Component

Download:
Gungho-0.09008.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  4
View/Report Bugs
Source  

NAME ^

Gungho::Component - Component Base Class For Gungho

SYNOPSIS ^

  package MyComponent;
  use base qw(Gungho::Component);

  # in your conf
  ---
  components:
    - +MyComponent
    - Authentication::Basic

DESCRIPTION ^

Gungho::Component is yet another way to modify Gungho's behavior. It differs from plugins in that it adds directly to Gungho's internals via subclassing. Plugins are called from various hooks, but components can directly interfere and/or add functionality to Gungho.

To add a new component, just create a Gungho::Component subclass, and add it in your config. Gungho will ensure that it is loaded and setup.

METHODS ^

feature_name()

Returns the name of the feature that this component provides. By default it's the package name with "Gungho::Component::" stripped out.

syntax highlighting: