Completed
Push — EZP-25721_more_info ( abccaf...3b80fb )
by André
58:46 queued 25:54
created

InstantCachePurger::clear()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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