Passed
Pull Request — main (#308)
by Paul
16:02 queued 07:12
created

AuthenticationSuccessHandler::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 1
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\RedirectResponse;
8
use Symfony\Component\HttpFoundation\Request;
9
use Symfony\Component\HttpFoundation\Response;
10
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
11
12
class AuthenticationSuccessHandler extends SuccessHandler
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 Paul, denk dat je hier naar de /overview of / route moet gaan
25
        return new RedirectResponse('/overview');
26
    }
27
}
28