isa => Str,
);
+has subinclude => (
+ is => 'ro',
+ isa => HashRef,
+ default => sub { {} },
+);
+
around 'new' => sub {
my $next = shift;
my $class = shift;
return $cache->{$plugin} if exists $cache->{$plugin};
my $plugin_config = Catalyst::Utils::merge_hashes(
- $self->config->{subinclude}->{ALL}||{},
- $self->config->{subinclude}->{$plugin}||{}
+ $self->subinclude->{ALL}||{},
+ $self->subinclude->{$plugin}||{}
);
Class::MOP::load_class($class);