for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Silverback API Components Bundle Project
*
* (c) Daniel West <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Silverback\ApiComponentsBundle\Security\Http\Logout;
use Silverback\ApiComponentsBundle\RefreshToken\Storage\RefreshTokenStorageInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Http\Logout\LogoutHandlerInterface;
/**
* @deprecated As of Symfony 5.1 implement an event listener instead. Will be removed when supported symfony versions >=5.1
final class LogoutHandler implements LogoutHandlerInterface
Symfony\Component\Securi...\LogoutHandlerInterface
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
final class LogoutHandler implements /** @scrutinizer ignore-deprecated */ LogoutHandlerInterface
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.
{
private RefreshTokenStorageInterface $storage;
public function __construct(RefreshTokenStorageInterface $storage)
$this->storage = $storage;
}
* {@inheritdoc}
public function logout(Request $request, Response $response, TokenInterface $token): void
$this->storage->expireAll($token->getUser());
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.