Completed
Push — ezp26352-skip_csrf_check_on_re... ( 19f37a...6abe82 )
by
unknown
79:54 queued 33:48
created

PurgeAllHttpCacheSlot   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A purgeHttpCache() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the eZ Publish Kernel package.
5
 *
6
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
7
 * @license For full copyright and license information view LICENSE file distributed with this source code.
8
 *
9
 * @version //autogentag//
10
 */
11
namespace eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot;
12
13
use eZ\Publish\Core\SignalSlot\Signal;
14
use eZ\Publish\Core\SignalSlot\Slot;
15
16
/**
17
 * An abstract slot for clearing all http caches.
18
 *
19
 * @deprecated By design clears all cache, will be removed in favour of more precise cache clearing.
20
 */
21
abstract class PurgeAllHttpCacheSlot extends HttpCacheSlot
22
{
23
    /**
24
     * Purges all caches.
25
     *
26
     * @param \eZ\Publish\Core\SignalSlot\Signal $signal
27
     *
28
     * @return mixed
29
     */
30
    protected function purgeHttpCache(Signal $signal)
31
    {
32
        return $this->httpCacheClearer->purgeAll();
33
    }
34
}
35