function ServiceFactory::phaseControl in X Autoload 7.5
Parameters
ServiceContainer $services:
Return value
File
- src/
DIC/ ServiceFactory.php, line 143
Class
Namespace
Drupal\xautoload\DICCode
function phaseControl($services) {
$observers = array(
$services->extensionNamespaces,
new HookXautoload($services->system),
new LibrariesOnInit($services->system),
);
if ($services->system
->variableGet(XAUTOLOAD_VARNAME_REPLACE_CORE, FALSE)) {
$observers[] = new DrupalCoreRegistryRegistrator();
}
return new DrupalPhaseControl($services->system, $observers);
}