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

CopySubtreeSlot   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 2
lcom 1
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A supports() 0 4 1
A purgeHttpCache() 0 7 1
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