Skip to content

Commit

Permalink
[CLEANUP] CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mabolek committed Sep 4, 2023
1 parent 9562cf9 commit 93aa637
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Classes/Router/HttpRequestRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Pixelant\Interest\Router;

use Pixelant\Interest\Authentication\HttpBackendUserAuthenticationForTypo3v11;
use Pixelant\Interest\Authentication\HttpBackendUserAuthenticationForTypo3v12;
use Pixelant\Interest\DataHandling\Operation\Exception\AbstractException;
use Pixelant\Interest\Domain\Repository\TokenRepository;
use Pixelant\Interest\RequestHandler\AuthenticateRequestHandler;
Expand Down Expand Up @@ -151,9 +149,15 @@ protected static function authenticateBearerToken(ServerRequestInterface $reques
protected static function initialize(ServerRequestInterface $request)
{
if (CompatibilityUtility::typo3VersionIsLessThan('12.0')) {
Bootstrap::initializeBackendUser(HttpBackendUserAuthenticationForTypo3v11::class, $request);
Bootstrap::initializeBackendUser(
'Pixelant\Interest\Authentication\HttpBackendUserAuthenticationForTypo3v11',
$request
);
} else {
Bootstrap::initializeBackendUser(HttpBackendUserAuthenticationForTypo3v12::class, $request);
Bootstrap::initializeBackendUser(
'Pixelant\Interest\Authentication\HttpBackendUserAuthenticationForTypo3v12',
$request
);
}

self::bootFrontendController($request);
Expand Down

0 comments on commit 93aa637

Please sign in to comment.