Completed
Push — EZP-31644 ( 2e0a1e...93bb44 )
by
unknown
19:12
created

InstantCachePurger   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A clear() 0 4 1
1
<?php
2
3
/**
4
 * File containing the InstantCachePurger class.
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
namespace eZ\Bundle\EzPublishCoreBundle\Cache\Http;
10
11
use eZ\Publish\Core\MVC\Symfony\Cache\Http\InstantCachePurger as BasePurger;
12
use Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface;
13
14
class InstantCachePurger extends BasePurger implements CacheClearerInterface
0 ignored issues
show
Deprecated Code introduced by
The class eZ\Publish\Core\MVC\Symf...Http\InstantCachePurger has been deprecated with message: since 6.8 will be removed in 7.0, use PurgeClient directly.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

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

Loading history...
15
{
16
    /**
17
     * Clears any caches necessary.
18
     *
19
     * @param string $cacheDir The cache directory.
20
     */
21
    public function clear($cacheDir)
22
    {
23
        $this->purgeAll();
24
    }
25
}
26