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

PurgeAllHttpCacheSlot::purgeHttpCache()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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