CatalystX::Features::Backend - All the dirty work is done here



NAME

CatalystX::Features::Backend - All the dirty work is done here


VERSION

version 0.17


SYNOPSIS

        my $backend = $c->features;
        $backend->list; # a list of features
        $backend->config; # my config


METHODS

$c->features->config()

Returns the config hash part related to the CatalystX::Features manpage.

$c->features->init()

Initializes the backend, searching for features and creating the CatalystX::Features::Feature manpage instances for them.

$c->features->find( file=>'filename.ext' )

Returns the feature that contains a file.

$c->features->list()

Returns an array with instances of all loaded features. If they have not changed via config, they'll be instances of the the CatalystX::Features::Feature manpage class.

$c->features->get( $feature_name )

Get the object instance of a given feature name.

$c->features->me()

Not implemented yet.


TODO

A $c->features->me method which can be called from within a feature to get it's own instance.


AUTHORS

        Rodrigo de Oliveira (rodrigolive), C<rodrigolive@gmail.com>


LICENSE

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

 CatalystX::Features::Backend - All the dirty work is done here