public function banAll($domains = null, $contentType = null)
    {
        $this->cacheInvalidator->invalidateRegex('.*', $contentType, $domains);
        $this->logger->log(sprintf('Cleared all Varnish cache%s%s', $domains ? ' for domains "' . (is_array($domains) ? implode(', ', $domains) : $domains) . '"' : '', $contentType ? ' with content type "' . $contentType . '"' : ''));
        $this->execute();
    }
public function banAll($domains = null, $contentType = null)
    {
        $this->cacheInvalidator->invalidateRegex('.*', $contentType, $domains);
        $this->logger->log(sprintf('Cleared all Varnish cache%s%s', $domains ? ' for domains "' . (is_array($domains) ? implode(', ', $domains) : $domains) . '"' : '', $contentType ? ' with content type "' . $contentType . '"' : ''));
        $this->execute();
    }
public function banAll ( $ domains = null , $ contentType = null ) { $ this -> cacheInvalidator -> invalidateRegex ( '.*' , $ contentType , $ domains ) ; $ this -> logger -> log ( sprintf ( 'Cleared all Varnish cache%s%s' , $ domains ? ' for domains "' . ( is_array ( $ domains ) ? implode ( ', ' , $ domains ) : $ domains ) . '"' : '' , $ contentType ? ' with content type "' . $ contentType . '"' : '' ) ) ; $ this -> execute ( ) ; }
Clear all cache in Varnish for a optionally given domain & content type.

The hosts parameter can either be a regular expression, e.g.
'^(www\.)?(this|that)\.com$' or an array of exact host names, e.g.
['example.com', 'other.net']. If the parameter is empty, all hosts
are matched.

@param array|string $domains The domains to flush, e.g. "example.com"
@param string $contentType The mime type to flush, e.g. "image/png"
@return void
Clear all cache in Varnish for a optionally given domain & content type .