class LibraryCacheMissObserver in X Autoload 7.5
Hierarchy
- class \Drupal\xautoload\Libraries\LibraryCacheMissObserver implements CacheMissObserverInterface
Expanded class hierarchy of LibraryCacheMissObserver
File
- src/
Libraries/ LibraryCacheMissObserver.php, line 10
Namespace
Drupal\xautoload\LibrariesView source
class LibraryCacheMissObserver implements CacheMissObserverInterface {
/**
* @var callable
*/
private $callable;
/**
* @var string
*/
private $path;
/**
* @param callable $callable
* @param string $path
*/
function __construct($callable, $path) {
$this->callable = $callable;
$this->path = $path;
}
/**
* Executes the operation.
*
* This method will only be called if and when the "real" class finder is
* initialized.
*
* @param ExtendedClassFinderInterface $finder
* The class finder.
*/
function cacheMiss($finder) {
$adapter = \xautoload_InjectedAPI_hookXautoload::create($finder, $this->path);
call_user_func($this->callable, $adapter, $this->path);
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LibraryCacheMissObserver:: |
private | property | ||
LibraryCacheMissObserver:: |
private | property | ||
LibraryCacheMissObserver:: |
function |
Executes the operation. Overrides CacheMissObserverInterface:: |
||
LibraryCacheMissObserver:: |
function |