You are here

function ProxyClassFinder::onFinderInit in X Autoload 7.4

Parameters

FinderOperationInterface $operation:

File

lib/ClassFinder/ProxyClassFinder.php, line 68

Class

ProxyClassFinder
A placeholder class finder. Used to postpone expensive operations until they are actually needed.

Namespace

Drupal\xautoload\ClassFinder

Code

function onFinderInit($operation) {
  if (!$this->initialized) {
    $this->scheduledOperations[] = $operation;
  }
  else {
    $operation
      ->operateOnFinder($this->finder, $this->helper);
  }
}