Passed
Push — feature/symfony6-upgrade ( f2593f...949a66 )
by Paul
06:49
created

AuthenticationSuccessHandler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A onAuthenticationSuccess() 0 3 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace Surfnet\StepupSelfService\SelfServiceBundle\Security\Authentication\Handler;
4
5
use Surfnet\SamlBundle\Security\Authentication\Handler\SuccessHandler;
6
use Surfnet\StepupSelfService\SelfServiceBundle\Security\Authentication\AuthenticatedSessionStateHandler;
7
use Symfony\Component\HttpFoundation\Request;
8
use Symfony\Component\HttpFoundation\Response;
9
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
10
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface;
11
12
class AuthenticationSuccessHandler extends SuccessHandler implements AuthenticationSuccessHandlerInterface
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class AuthenticationSuccessHandler
Loading history...
13
{
14
15
    public function __construct(
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function __construct()
Loading history...
16
        private AuthenticatedSessionStateHandler $authenticatedSessionStateHandler,
17
    ) {
18
    }
19
20
    public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function onAuthenticationSuccess()
Loading history...
21
    {
22
        $this->authenticatedSessionStateHandler->setCurrentRequestUri($request->getUri());
23
24
        // TODO: probably more functionality needed
25
26
    }
27
}
28