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

onAuthenticationSuccess()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
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