25 lines
404 B
PHP
25 lines
404 B
PHP
<?php
|
|
|
|
namespace Trinity\Bundle\ContentManagerBundle\Cache;
|
|
|
|
use Liip\CacheControlBundle\Helper\Varnish as BaseVarnish;
|
|
|
|
class Varnish
|
|
{
|
|
protected $varnish;
|
|
|
|
public function __construct($host)
|
|
{
|
|
$this->varnish = new BaseVarnish(
|
|
$host,
|
|
array('127.0.0.1'),
|
|
80
|
|
);
|
|
}
|
|
|
|
public function get()
|
|
{
|
|
return $this->varnish;
|
|
}
|
|
}
|