for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot;
use eZ\Publish\Core\MVC\Symfony\Cache\GatewayCachePurger;
use eZ\Publish\Core\SignalSlot\Signal;
use eZ\Publish\Core\SignalSlot\Slot;
use eZ\Publish\Core\SignalSlot\Signal\URLService\UpdateUrlSignal;
* A slot handling UpdateUrlSignal.
*
* @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
class UpdateUrlSlot extends Slot
{
* @var \eZ\Publish\Core\MVC\Symfony\Cache\GatewayCachePurger
protected $httpCacheClearer;
* UpdateUrlSlot constructor.
* @param GatewayCachePurger $httpCacheClearer
public function __construct(GatewayCachePurger $httpCacheClearer)
$this->httpCacheClearer = $httpCacheClearer;
}
* {@inheritdoc}
public function receive(Signal $signal)
if ($signal instanceof UpdateUrlSignal) {
$this->httpCacheClearer->purgeAll();