You are here

class DrupalCoreRegistryRegistrator in X Autoload 7.5

Hierarchy

Expanded class hierarchy of DrupalCoreRegistryRegistrator

1 file declares its use of DrupalCoreRegistryRegistrator
ServiceFactory.php in src/DIC/ServiceFactory.php

File

src/Phases/DrupalCoreRegistryRegistrator.php, line 8

Namespace

Drupal\xautoload\Phases
View source
class DrupalCoreRegistryRegistrator implements PhaseObserverInterface {

  /**
   * Wake up after a cache fail.
   *
   * @param ExtendedClassFinderInterface $finder
   *   The class finder object, with any cache decorator peeled off.
   * @param string[] $extensions
   *   Currently enabled extensions. Extension type by extension name.
   */
  public function wakeUp(ExtendedClassFinderInterface $finder, array $extensions) {
    $plugin = new DrupalCoreRegistryPlugin(DRUPAL_ROOT . '/');
    $finder
      ->getNamespaceMap()
      ->registerDeepPath('', 'registry', $plugin);
    $finder
      ->getPrefixMap()
      ->registerDeepPath('', 'registry', $plugin);
  }

  /**
   * Enter the boot phase of the request, where all bootstrap module files are included.
   */
  public function enterBootPhase() {

    // Nothing.
  }

  /**
   * Enter the main phase of the request, where all module files are included.
   */
  public function enterMainPhase() {

    // Nothing.
  }

  /**
   * React to new extensions that were just enabled.
   *
   * @param string $name
   * @param string $type
   */
  public function welcomeNewExtension($name, $type) {

    // Nothing.
  }

  /**
   * React to xautoload_modules_enabled()
   *
   * @param string[] $modules
   *   New module names.
   */
  public function modulesEnabled($modules) {

    // Nothing.
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DrupalCoreRegistryRegistrator::enterBootPhase public function Enter the boot phase of the request, where all bootstrap module files are included. Overrides PhaseObserverInterface::enterBootPhase
DrupalCoreRegistryRegistrator::enterMainPhase public function Enter the main phase of the request, where all module files are included. Overrides PhaseObserverInterface::enterMainPhase
DrupalCoreRegistryRegistrator::modulesEnabled public function React to xautoload_modules_enabled() Overrides PhaseObserverInterface::modulesEnabled
DrupalCoreRegistryRegistrator::wakeUp public function Wake up after a cache fail. Overrides PhaseObserverInterface::wakeUp
DrupalCoreRegistryRegistrator::welcomeNewExtension public function React to new extensions that were just enabled. Overrides PhaseObserverInterface::welcomeNewExtension