You are here

public function DrupalCoreRegistryRegistrator::wakeUp in X Autoload 7.5

Wake up after a cache fail.

Parameters

ExtendedClassFinderInterface $finder: The class finder object, with any cache decorator peeled off.

string[] $extensions: Currently enabled extensions. Extension type by extension name.

Overrides PhaseObserverInterface::wakeUp

File

src/Phases/DrupalCoreRegistryRegistrator.php, line 18

Class

DrupalCoreRegistryRegistrator

Namespace

Drupal\xautoload\Phases

Code

public function wakeUp(ExtendedClassFinderInterface $finder, array $extensions) {
  $plugin = new DrupalCoreRegistryPlugin(DRUPAL_ROOT . '/');
  $finder
    ->getNamespaceMap()
    ->registerDeepPath('', 'registry', $plugin);
  $finder
    ->getPrefixMap()
    ->registerDeepPath('', 'registry', $plugin);
}