function ProxyClassFinder::observeFirstCacheMiss in X Autoload 7.5
Parameters
CacheMissObserverInterface $observer:
File
- src/
ClassFinder/ ProxyClassFinder.php, line 60
Class
- ProxyClassFinder
- A placeholder class finder. Used to postpone expensive operations until they are actually needed.
Namespace
Drupal\xautoload\ClassFinderCode
function observeFirstCacheMiss($observer) {
if (!$this->initialized) {
$this->cacheMissObservers[] = $observer;
}
else {
$observer
->cacheMiss($this->finder);
}
}