use Hash::Util qw/lock_hash/;
use MooseX::Types::LoadableClass qw/ LoadableClass /;
use Moose::Util;
-use Catalyst::IOC::BlockInjection;
use Catalyst::IOC::ConstructorInjection;
use Module::Pluggable::Object ();
use namespace::autoclean;
%$config
);
- # XXX think about ditching this sort entirely
- my @comps = sort { length $a <=> length $b } $locator->plugins;
-
- return \@comps;
+ return [ $locator->plugins ];
},
dependencies => [ depends_on('application_name'), depends_on('config') ],
);
$self->get_sub_container($type)->add_service(
Catalyst::IOC::ConstructorInjection->new(
- lifecycle => 'Singleton', # FIXME?
name => $name,
class => $component,
dependencies => [
isa => 'Str',
default => Catalyst::Utils::class2classsuffix( $component ),
},
+ accept_context_args => {
+ isa => 'ArrayRef|Undef',
+ required => 0,
+ default => undef,
+ },
},
)
);
Finds components that match a given regexp. Used internally, by find_component.
-=head2 setup_component
-
=head2 _fix_syntax
=head2 _config_substitutions