You are here

class VarnishBackendFactory in Varnish 8

Hierarchy

Expanded class hierarchy of VarnishBackendFactory

1 string reference to 'VarnishBackendFactory'
varnish.services.yml in ./varnish.services.yml
varnish.services.yml
1 service uses VarnishBackendFactory
cache.backend.varnish in ./varnish.services.yml
Drupal\varnish\Cache\VarnishBackendFactory

File

src/Cache/VarnishBackendFactory.php, line 9

Namespace

Drupal\varnish\Cache
View 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

Namesort descending Modifiers Type Description Overrides
VarnishBackendFactory::$pathAliasManager protected property
VarnishBackendFactory::get public function Gets a cache backend class for a given cache bin. Overrides CacheFactoryInterface::get
VarnishBackendFactory::__construct function