mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-26 18:21:02 +00:00
Migrate to readonly properties
This commit is contained in:
parent
a107773c11
commit
ca018c77e3
71 changed files with 203 additions and 199 deletions
|
@ -45,14 +45,14 @@ use Wallabag\Tools\Utils;
|
|||
class ConfigController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManagerInterface $entityManager,
|
||||
private UserManagerInterface $userManager,
|
||||
private EntryRepository $entryRepository,
|
||||
private TagRepository $tagRepository,
|
||||
private AnnotationRepository $annotationRepository,
|
||||
private ConfigRepository $configRepository,
|
||||
private EventDispatcherInterface $eventDispatcher,
|
||||
private Redirect $redirectHelper,
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
private readonly UserManagerInterface $userManager,
|
||||
private readonly EntryRepository $entryRepository,
|
||||
private readonly TagRepository $tagRepository,
|
||||
private readonly AnnotationRepository $annotationRepository,
|
||||
private readonly ConfigRepository $configRepository,
|
||||
private readonly EventDispatcherInterface $eventDispatcher,
|
||||
private readonly Redirect $redirectHelper,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -34,14 +34,14 @@ use Wallabag\Repository\TagRepository;
|
|||
class EntryController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManagerInterface $entityManager,
|
||||
private EventDispatcherInterface $eventDispatcher,
|
||||
private EntryRepository $entryRepository,
|
||||
private Redirect $redirectHelper,
|
||||
private PreparePagerForEntries $preparePagerForEntriesHelper,
|
||||
private FilterBuilderUpdaterInterface $filterBuilderUpdater,
|
||||
private ContentProxy $contentProxy,
|
||||
private Security $security,
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
private readonly EventDispatcherInterface $eventDispatcher,
|
||||
private readonly EntryRepository $entryRepository,
|
||||
private readonly Redirect $redirectHelper,
|
||||
private readonly PreparePagerForEntries $preparePagerForEntriesHelper,
|
||||
private readonly FilterBuilderUpdaterInterface $filterBuilderUpdater,
|
||||
private readonly ContentProxy $contentProxy,
|
||||
private readonly Security $security,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ use Wallabag\Repository\EntryRepository;
|
|||
class FeedController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private EntryRepository $entryRepository,
|
||||
private readonly EntryRepository $entryRepository,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ use Wallabag\Repository\IgnoreOriginInstanceRuleRepository;
|
|||
class IgnoreOriginInstanceRuleController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManagerInterface $entityManager,
|
||||
private TranslatorInterface $translator,
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
private readonly TranslatorInterface $translator,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -14,10 +14,10 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class ChromeController extends BrowserController
|
||||
{
|
||||
public function __construct(
|
||||
private ChromeImport $chromeImport,
|
||||
private Config $craueConfig,
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly ChromeImport $chromeImport,
|
||||
private readonly Config $craueConfig,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class DeliciousController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -14,10 +14,10 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class ElcuratorController extends WallabagController
|
||||
{
|
||||
public function __construct(
|
||||
private ElcuratorImport $elcuratorImport,
|
||||
private Config $craueConfig,
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly ElcuratorImport $elcuratorImport,
|
||||
private readonly Config $craueConfig,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -14,10 +14,10 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class FirefoxController extends BrowserController
|
||||
{
|
||||
public function __construct(
|
||||
private FirefoxImport $firefoxImport,
|
||||
private Config $craueConfig,
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly FirefoxImport $firefoxImport,
|
||||
private readonly Config $craueConfig,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ use Wallabag\Import\ImportChain;
|
|||
class ImportController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private RabbitMQConsumerTotalProxy $rabbitMQConsumerTotalProxy,
|
||||
private Client $redisClient,
|
||||
private readonly RabbitMQConsumerTotalProxy $rabbitMQConsumerTotalProxy,
|
||||
private readonly Client $redisClient,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class InstapaperController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class OmnivoreController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class PinboardController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class PocketController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private Config $craueConfig,
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private SessionInterface $session,
|
||||
private readonly Config $craueConfig,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
private readonly SessionInterface $session,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -14,10 +14,10 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class PocketHtmlController extends HtmlController
|
||||
{
|
||||
public function __construct(
|
||||
private PocketHtmlImport $pocketHtmlImport,
|
||||
private Config $craueConfig,
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly PocketHtmlImport $pocketHtmlImport,
|
||||
private readonly Config $craueConfig,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class ReadabilityController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -14,10 +14,10 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class ShaarliController extends HtmlController
|
||||
{
|
||||
public function __construct(
|
||||
private ShaarliImport $shaarliImport,
|
||||
private Config $craueConfig,
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly ShaarliImport $shaarliImport,
|
||||
private readonly Config $craueConfig,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -14,10 +14,10 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class WallabagV1Controller extends WallabagController
|
||||
{
|
||||
public function __construct(
|
||||
private WallabagV1Import $wallabagImport,
|
||||
private Config $craueConfig,
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly WallabagV1Import $wallabagImport,
|
||||
private readonly Config $craueConfig,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -14,10 +14,10 @@ use Wallabag\Redis\Producer as RedisProducer;
|
|||
class WallabagV2Controller extends WallabagController
|
||||
{
|
||||
public function __construct(
|
||||
private WallabagV2Import $wallabagImport,
|
||||
private Config $craueConfig,
|
||||
private RabbitMqProducer $rabbitMqProducer,
|
||||
private RedisProducer $redisProducer,
|
||||
private readonly WallabagV2Import $wallabagImport,
|
||||
private readonly Config $craueConfig,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -24,10 +24,10 @@ use Wallabag\Repository\SiteCredentialRepository;
|
|||
class SiteCredentialController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManagerInterface $entityManager,
|
||||
private TranslatorInterface $translator,
|
||||
private CryptoProxy $cryptoProxy,
|
||||
private Config $craueConfig,
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
private readonly TranslatorInterface $translator,
|
||||
private readonly CryptoProxy $cryptoProxy,
|
||||
private readonly Config $craueConfig,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -26,10 +26,10 @@ use Wallabag\Repository\TagRepository;
|
|||
class TagController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManagerInterface $entityManager,
|
||||
private TagsAssigner $tagsAssigner,
|
||||
private Redirect $redirectHelper,
|
||||
private Security $security,
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
private readonly TagsAssigner $tagsAssigner,
|
||||
private readonly Redirect $redirectHelper,
|
||||
private readonly Security $security,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -30,8 +30,8 @@ use Wallabag\Repository\UserRepository;
|
|||
class UserController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManagerInterface $entityManager,
|
||||
private TranslatorInterface $translator,
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
private readonly TranslatorInterface $translator,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue