You are here

public function DrupalPhaseControl::enterMainPhase in X Autoload 7.5

Initiate the main phase.

Called from

See also

xautoload_custom_theme()

xautolaod_init()

1 call to DrupalPhaseControl::enterMainPhase()
DrupalPhaseControl::checkNewExtensions in src/Phases/DrupalPhaseControl.php
Checks if new extensions have been enabled, and registers them.

File

src/Phases/DrupalPhaseControl.php, line 104

Class

DrupalPhaseControl
Records events during a Drupal request, and forwards them to the registered observers after the first class loader cache miss.

Namespace

Drupal\xautoload\Phases

Code

public function enterMainPhase() {

  // Main phase implies boot phase.
  $this
    ->enterBootPhase();
  if ($this->mainPhase) {

    // We are already in the main phase. Nothing changes.
    return;
  }
  $this->mainPhase = TRUE;
  if (!$this->awake) {

    // The entire thing is not initialized yet.
    // Postpone until operateOnFinder()
    return;
  }
  foreach ($this->observers as $observer) {
    $observer
      ->enterMainPhase();
  }
}