for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FOSHttpCache package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\HttpCache\ProxyClient;
use FOS\HttpCache\ProxyClient\Invalidation\BanInterface;
use FOS\HttpCache\ProxyClient\Invalidation\PurgeInterface;
use FOS\HttpCache\ProxyClient\Invalidation\RefreshInterface;
use FOS\HttpCache\ProxyClient\Invalidation\TagsInterface;
use Http\Message\MessageFactory;
/**
* Class Noop
* @author Gavin Staniforth <[email protected]>
class Noop implements ProxyClientInterface, BanInterface, PurgeInterface, RefreshInterface, TagsInterface
{
* {@inheritdoc}
public function ban(array $headers)
return $this;
}
public function banPath($path, $contentType = null, $hosts = null)
public function invalidateTags(array $tags)
public function getTagsHeaderValue(array $tags)
return [];
public function getTagsHeaderName()
return 'X-Noop-Cache-Tags';
public function purge($url, array $headers = [])
public function refresh($url, array $headers = [])
public function flush()
return 0;