Catalyst-Model-MultiAdaptor
view release on metacpan or search on metacpan
inc/Catalyst.pm view on Meta::CPAN
13611362136313641365136613671368136913701371137213731374137513761377137813791380
$class
->locate_components(
$config
);
my
%comps
=
map
{
$_
=> 1 }
@comps
;
my
$deprecatedcatalyst_component_names
=
grep
{ /::[CMV]::/ }
@comps
;
$class
->
log
->
warn
(
qq{Your application is using the deprecated ::[MVC]:: type naming scheme.\n}
.
qq{Please switch your class names to ::Model::, ::View:: and ::Controller: as appropriate.\n}
)
if
$deprecatedcatalyst_component_names
;
for
my
$component
(
@comps
) {
# We pass ignore_loaded here so that overlay files for (e.g.)
# Model::DBI::Schema sub-classes are loaded - if it's in @comps
# we know M::P::O found a file on disk so this is safe
Catalyst::Utils::ensure_class_loaded(
$component
, {
ignore_loaded
=> 1 } );
# Needs to be done as soon as the component is loaded, as loading a sub-component
# (next time round the loop) can cause us to get the wrong metaclass..
$class
->_controller_init_base_classes(
$component
);
}
( run in 0.397 second using v1.01-cache-2.11-cpan-e5176c747c2 )