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

UnassignUserFromUserGroupSlot   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A supports() 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
namespace eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot;
10
11
use eZ\Publish\Core\SignalSlot\Signal;
12
13
/**
14
 * A slot handling UnAssignUserFromUserGroupSignal.
15
 *
16
 * @todo
17
 * Is this right ? Does it require a full wipe of the cache ? Very unlikely.
18
 * The User's Content's HTTP cache must be cleared, yes.
19
 * And the user must be logged out, or its user hash cleared (not sure we can without clearing for all users)
20
 *
21
 * @deprecated since 6.8. The platform-http-cache package defines slots for http-cache multi-tagging.
22
 */
23
class UnassignUserFromUserGroupSlot extends PurgeAllHttpCacheSlot
0 ignored issues
show
Deprecated Code introduced by
The class eZ\Publish\Core\MVC\Symf...t\PurgeAllHttpCacheSlot has been deprecated with message: By design clears all cache, will be removed in favour of more precise cache clearing.

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...
24
{
25
    protected function supports(Signal $signal)
26
    {
27
        return $signal instanceof Signal\UserService\UnAssignUserFromUserGroupSignal;
28
    }
29
}
30