final public static function StorageFactory::getStorage in XHProf 8
Return the configured storage service.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config: The config factory.
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container
Return value
\Drupal\xhprof\XHProfLib\Storage\StorageInterface The storage service.
1 string reference to 'StorageFactory::getStorage'
File
- src/
StorageFactory.php, line 24
Class
- StorageFactory
- Provides storage factory.
Namespace
Drupal\xhprofCode
public static final function getStorage(ConfigFactoryInterface $config, ContainerInterface $container) {
$storage = $config
->get('xhprof.config')
->get('storage') ?: 'xhprof.file_storage';
return $container
->get($storage);
}