You are here

public function HookXautoloadEarly::enterMainPhase in X Autoload 7.5

Enter the main phase of the request, where all module files are included.

Overrides PhaseObserverInterface::enterMainPhase

File

src/Phases/HookXautoloadEarly.php, line 60

Class

HookXautoloadEarly
A variation of hook_xautoload() that fires very early, as soon as a *.module file is included, but only once per module / request.

Namespace

Drupal\xautoload\Phases

Code

public function enterMainPhase() {

  // @todo Don't use moduleImplements(), to prevent hook_module_implements_alter()
  $modules = $this->system
    ->moduleImplements('xautoload');

  // @todo Remove boot modules from the list.
  $this
    ->runHookXautoload($modules);
}