mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-30 04:51:01 +00:00
Merge pull request #6085 from wallabag/fix/remove-deprecation
Remove some deprecation
This commit is contained in:
commit
b6ba8517a6
6 changed files with 14 additions and 17 deletions
|
@ -152,6 +152,9 @@ services:
|
||||||
bd_guzzle_site_authenticator.site_config_builder:
|
bd_guzzle_site_authenticator.site_config_builder:
|
||||||
alias: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder
|
alias: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder
|
||||||
|
|
||||||
|
GuzzleHttp\Cookie\CookieJar:
|
||||||
|
alias: 'Wallabag\CoreBundle\Helper\FileCookieJar'
|
||||||
|
|
||||||
Wallabag\CoreBundle\Helper\HttpClientFactory:
|
Wallabag\CoreBundle\Helper\HttpClientFactory:
|
||||||
calls:
|
calls:
|
||||||
- ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
|
- ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Event\Listener;
|
namespace Wallabag\CoreBundle\Event\Listener;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Session\Session;
|
use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
||||||
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
|
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,12 +15,9 @@ use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
|
||||||
*/
|
*/
|
||||||
class UserLocaleListener
|
class UserLocaleListener
|
||||||
{
|
{
|
||||||
/**
|
private SessionInterface $session;
|
||||||
* @var Session
|
|
||||||
*/
|
|
||||||
private $session;
|
|
||||||
|
|
||||||
public function __construct(Session $session)
|
public function __construct(SessionInterface $session)
|
||||||
{
|
{
|
||||||
$this->session = $session;
|
$this->session = $session;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ use BD\GuzzleSiteAuthenticator\SiteConfig\SiteConfig;
|
||||||
use BD\GuzzleSiteAuthenticator\SiteConfig\SiteConfigBuilder;
|
use BD\GuzzleSiteAuthenticator\SiteConfig\SiteConfigBuilder;
|
||||||
use Graby\SiteConfig\ConfigBuilder;
|
use Graby\SiteConfig\ConfigBuilder;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Wallabag\CoreBundle\Repository\SiteCredentialRepository;
|
use Wallabag\CoreBundle\Repository\SiteCredentialRepository;
|
||||||
|
|
||||||
class GrabySiteConfigBuilder implements SiteConfigBuilder
|
class GrabySiteConfigBuilder implements SiteConfigBuilder
|
||||||
|
@ -27,14 +27,14 @@ class GrabySiteConfigBuilder implements SiteConfigBuilder
|
||||||
private $logger;
|
private $logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var TokenStorage
|
* @var TokenStorageInterface
|
||||||
*/
|
*/
|
||||||
private $token;
|
private $token;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GrabySiteConfigBuilder constructor.
|
* GrabySiteConfigBuilder constructor.
|
||||||
*/
|
*/
|
||||||
public function __construct(ConfigBuilder $grabyConfigBuilder, TokenStorage $token, SiteCredentialRepository $credentialRepository, LoggerInterface $logger)
|
public function __construct(ConfigBuilder $grabyConfigBuilder, TokenStorageInterface $token, SiteCredentialRepository $credentialRepository, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
$this->grabyConfigBuilder = $grabyConfigBuilder;
|
$this->grabyConfigBuilder = $grabyConfigBuilder;
|
||||||
$this->credentialRepository = $credentialRepository;
|
$this->credentialRepository = $credentialRepository;
|
||||||
|
|
|
@ -4,19 +4,16 @@ namespace Wallabag\CoreBundle\Helper;
|
||||||
|
|
||||||
use Pagerfanta\Adapter\AdapterInterface;
|
use Pagerfanta\Adapter\AdapterInterface;
|
||||||
use Pagerfanta\Pagerfanta;
|
use Pagerfanta\Pagerfanta;
|
||||||
use Symfony\Component\Routing\Router;
|
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Wallabag\UserBundle\Entity\User;
|
use Wallabag\UserBundle\Entity\User;
|
||||||
|
|
||||||
class PreparePagerForEntries
|
class PreparePagerForEntries
|
||||||
{
|
{
|
||||||
private $router;
|
|
||||||
private $tokenStorage;
|
private $tokenStorage;
|
||||||
|
|
||||||
public function __construct(TokenStorageInterface $tokenStorage, Router $router)
|
public function __construct(TokenStorageInterface $tokenStorage)
|
||||||
{
|
{
|
||||||
$this->tokenStorage = $tokenStorage;
|
$this->tokenStorage = $tokenStorage;
|
||||||
$this->router = $router;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Helper;
|
namespace Wallabag\CoreBundle\Helper;
|
||||||
|
|
||||||
use Symfony\Component\Routing\Router;
|
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Wallabag\CoreBundle\Entity\Config;
|
use Wallabag\CoreBundle\Entity\Config;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ class Redirect
|
||||||
private $router;
|
private $router;
|
||||||
private $tokenStorage;
|
private $tokenStorage;
|
||||||
|
|
||||||
public function __construct(Router $router, TokenStorageInterface $tokenStorage)
|
public function __construct(UrlGeneratorInterface $router, TokenStorageInterface $tokenStorage)
|
||||||
{
|
{
|
||||||
$this->router = $router;
|
$this->router = $router;
|
||||||
$this->tokenStorage = $tokenStorage;
|
$this->tokenStorage = $tokenStorage;
|
||||||
|
|
|
@ -6,7 +6,7 @@ use Doctrine\ORM\EntityManagerInterface;
|
||||||
use FOS\UserBundle\Event\UserEvent;
|
use FOS\UserBundle\Event\UserEvent;
|
||||||
use FOS\UserBundle\FOSUserEvents;
|
use FOS\UserBundle\FOSUserEvents;
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
use Symfony\Component\HttpFoundation\Session\Session;
|
use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
||||||
use Wallabag\CoreBundle\Entity\Config;
|
use Wallabag\CoreBundle\Entity\Config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +25,7 @@ class CreateConfigListener implements EventSubscriberInterface
|
||||||
private $listMode;
|
private $listMode;
|
||||||
private $session;
|
private $session;
|
||||||
|
|
||||||
public function __construct(EntityManagerInterface $em, $theme, $itemsOnPage, $feedLimit, $language, $readingSpeed, $actionMarkAsRead, $listMode, Session $session)
|
public function __construct(EntityManagerInterface $em, $theme, $itemsOnPage, $feedLimit, $language, $readingSpeed, $actionMarkAsRead, $listMode, SessionInterface $session)
|
||||||
{
|
{
|
||||||
$this->em = $em;
|
$this->em = $em;
|
||||||
$this->theme = $theme;
|
$this->theme = $theme;
|
||||||
|
|
Loading…
Reference in a new issue