| 1 | package Gapp::App::Role::HasPluginManager; | ||
| 2 | { | ||
| 3 | $Gapp::App::Role::HasPluginManager::VERSION = '0.007'; | ||
| 4 | } | ||
| 5 | |||
| 6 | use Moose::Role; | ||
| 7 | use MooseX::SemiAffordanceAccessor; | ||
| 8 | use MooseX::StrictConstructor; | ||
| 9 | |||
| 10 | with 'Gapp::App::Role::HasPlugins'; | ||
| 11 | |||
| 12 | use Gapp::App::Plugin::Manager; | ||
| 13 | |||
| 14 | has 'plugin_manager' => ( | ||
| 15 | is => 'rw', | ||
| 16 | isa => 'Gapp::App::Plugin::Manager', | ||
| 17 | default => sub { Gapp::App::Plugin::Manager->new( app => $_[0] ) }, | ||
| 18 | lazy => 1, | ||
| 19 | ); | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | 1; | ||
| 24 | |||
| 25 | __END__ |