for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FOSHttpCacheBundle 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\HttpCacheBundle\Configuration;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationAnnotation;
/**
* @Annotation
class InvalidatePath extends ConfigurationAnnotation
{
* @var array
private $paths;
* Handle path given without explicit key.
* @param string $data
public function setValue($data)
$this->setPaths((is_array($data) ? $data : [$data]));
}
* @param array $paths
public function setPaths($paths)
$this->paths = $paths;
* @return array
public function getPaths()
return $this->paths;
* {@inheritdoc}
public function getAliasName()
return 'invalidate_path';
public function allowArray()
return true;