class VarnishBackendFactory in Varnish 8
Hierarchy
- class \Drupal\varnish\Cache\VarnishBackendFactory implements CacheFactoryInterface
Expanded class hierarchy of VarnishBackendFactory
1 string reference to 'VarnishBackendFactory'
1 service uses VarnishBackendFactory
File
- src/
Cache/ VarnishBackendFactory.php, line 9
Namespace
Drupal\varnish\CacheView source
class VarnishBackendFactory implements CacheFactoryInterface {
protected $pathAliasManager;
function __construct(AliasManager $pathAliasManager) {
$this->pathAliasManager = $pathAliasManager;
}
/**
* {@inheritdoc}
*/
public function get($bin) {
return new VarnishBackend($bin, $this->pathAliasManager);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
VarnishBackendFactory:: |
protected | property | ||
VarnishBackendFactory:: |
public | function |
Gets a cache backend class for a given cache bin. Overrides CacheFactoryInterface:: |
|
VarnishBackendFactory:: |
function |