You are here

protected function ProxyClassFinder::initFinder in X Autoload 7.5

Same name and namespace in other branches
  1. 7.4 lib/ClassFinder/ProxyClassFinder.php \Drupal\xautoload\ClassFinder\ProxyClassFinder::initFinder()

Initialize the finder and notify cache miss observers.

3 calls to ProxyClassFinder::initFinder()
ProxyClassFinder::apiFindFile in src/ClassFinder/ProxyClassFinder.php
Finds the path to the file where the class is defined.
ProxyClassFinder::getFinder in src/ClassFinder/ProxyClassFinder.php
ProxyClassFinder::loadClass in src/ClassFinder/ProxyClassFinder.php
Callback for class loading. This will include ("require") the file found.

File

src/ClassFinder/ProxyClassFinder.php, line 81

Class

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

Namespace

Drupal\xautoload\ClassFinder

Code

protected function initFinder() {
  if (!$this->initialized) {
    $this->initialized = TRUE;
    foreach ($this->cacheMissObservers as $operation) {
      $operation
        ->cacheMiss($this->finder);
    }
  }
}