class StorageManager in XHProf 8
Provides service to collect available storage services.
Hierarchy
- class \Drupal\xhprof\XHProfLib\Storage\StorageManager
Expanded class hierarchy of StorageManager
1 string reference to 'StorageManager'
1 service uses StorageManager
File
- src/
XHProfLib/ Storage/ StorageManager.php, line 8
Namespace
Drupal\xhprof\XHProfLib\StorageView source
class StorageManager {
/**
* @var \Drupal\xhprof\XHProfLib\Storage\StorageInterface[]
*/
private $storages;
/**
* @return array
*/
public function getStorages() {
$output = [];
foreach ($this->storages as $id => $storage) {
$output[$id] = $storage
->getName();
}
return $output;
}
/**
* @param \Drupal\xhprof\XHProfLib\Storage\StorageInterface $storage
*
* @see \Drupal\xhprof\Compiler\StoragePass::process()
*/
public function addStorage($id, StorageInterface $storage) {
$this->storages[$id] = $storage;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StorageManager:: |
private | property | ||
StorageManager:: |
public | function | ||
StorageManager:: |
public | function |