DummyProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A authenticate() 0 4 1
A supports() 0 4 1
1
<?php
2
3
namespace Happyr\ApiBundle\Security\Authentication\Provider;
4
5
use Symfony\Component\Security\Core\Authentication\Provider\AuthenticationProviderInterface;
6
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
7
use Symfony\Component\Security\Core\Exception\AuthenticationException;
8
9
/**
10
 * Dummy provider that should be used when wsse is not active.
11
 *
12
 * @author Tobias Nyholm <[email protected]>
13
 */
14
class DummyProvider implements AuthenticationProviderInterface
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function authenticate(TokenInterface $token)
20
    {
21
        throw new AuthenticationException('Dummy provider.');
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function supports(TokenInterface $token)
28
    {
29
        return false;
30
    }
31
}
32