forked from wallabag/wallabag
Migrate to constructor promoted properties
This commit is contained in:
@ -13,13 +13,10 @@ use Wallabag\Entity\User;
|
||||
*/
|
||||
class Redirect
|
||||
{
|
||||
private $router;
|
||||
private $tokenStorage;
|
||||
|
||||
public function __construct(UrlGeneratorInterface $router, TokenStorageInterface $tokenStorage)
|
||||
{
|
||||
$this->router = $router;
|
||||
$this->tokenStorage = $tokenStorage;
|
||||
public function __construct(
|
||||
private UrlGeneratorInterface $router,
|
||||
private TokenStorageInterface $tokenStorage,
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user