Completed
Push — ezp28048_trash_move_when_cant_... ( f2b086...c48dd6 )
by
unknown
26:27 queued 11:24
created

CopySubtreeSlot::purgeHttpCache()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 7
rs 9.4285
1
<?php
2
3
namespace eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot;
4
5
use eZ\Publish\Core\SignalSlot\Signal;
6
7
/**
8
 * A slot handling CopySubtreeSignal.
9
 *
10
 * @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
11
 */
12
class CopySubtreeSlot extends HttpCacheSlot
13
{
14
    protected function supports(Signal $signal)
15
    {
16
        return $signal instanceof Signal\LocationService\CopySubtreeSignal;
17
    }
18
19
    protected function purgeHttpCache(Signal $signal)
20
    {
21
        /** @var Signal\LocationService\CopySubtreeSignal $signal */
22
        $this->httpCacheClearer->purge([
0 ignored issues
show
Deprecated Code introduced by
The method eZ\Publish\Core\MVC\Symf...wayCachePurger::purge() has been deprecated with message: as of 6.0, might be removed in a future major version. Use purgeForContent() instead when content exist.

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
23
            $signal->targetParentLocationId,
24
        ]);
25
    }
26
}
27