The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Gapp::App::Role::HasPluginManager - Role for app with managed plugins

SYNOPSIS

package Foo::App;

use Moose;

extends 'Gapp::App';

with 'Gapp::App::Role::HasPluginManager';

sub BUILD {

  $self->plugin_manager->add_search_path( 'plugins/directory' );
  
  $self->plugin_manager->register_plugins;

}

DESCRIPTION

A plugin manager object will scan a list of directories for plugins and register them with the application.

PROVIDED ATTRIBUTES

b<plugin_manager>
is rw
isa Gapp::App::Plugin::Manager

Plugin manager object.

AUTHORS

Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>

COPYRIGHT & LICENSE

Copyright (c) 2012 Jeffrey Ray Hallock.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)