forked from wallabag/wallabag
Migrate to readonly properties
This commit is contained in:
@ -10,8 +10,8 @@ use Symfony\Component\Security\Http\Event\LoginFailureEvent;
|
||||
class AuthenticationFailureListener implements EventSubscriberInterface
|
||||
{
|
||||
public function __construct(
|
||||
private RequestStack $requestStack,
|
||||
private LoggerInterface $logger,
|
||||
private readonly RequestStack $requestStack,
|
||||
private readonly LoggerInterface $logger,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ use Wallabag\Entity\Config;
|
||||
class CreateConfigListener implements EventSubscriberInterface
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManagerInterface $em,
|
||||
private readonly EntityManagerInterface $em,
|
||||
private $itemsOnPage,
|
||||
private $feedLimit,
|
||||
private $language,
|
||||
@ -24,7 +24,7 @@ class CreateConfigListener implements EventSubscriberInterface
|
||||
private $actionMarkAsRead,
|
||||
private $listMode,
|
||||
private $displayThumbnails,
|
||||
private RequestStack $requestStack,
|
||||
private readonly RequestStack $requestStack,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
class PasswordResettingListener implements EventSubscriberInterface
|
||||
{
|
||||
public function __construct(
|
||||
private UrlGeneratorInterface $router,
|
||||
private readonly UrlGeneratorInterface $router,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ class RegistrationListener implements EventSubscriberInterface
|
||||
*/
|
||||
public function __construct(
|
||||
private $registrationEnabled,
|
||||
private UrlGeneratorInterface $urlGenerator,
|
||||
private readonly UrlGeneratorInterface $urlGenerator,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ use Wallabag\Entity\User;
|
||||
class UserLocaleListener
|
||||
{
|
||||
public function __construct(
|
||||
private SessionInterface $session,
|
||||
private readonly SessionInterface $session,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,10 @@ use Wallabag\Helper\DownloadImages;
|
||||
class DownloadImagesSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManagerInterface $em,
|
||||
private DownloadImages $downloadImages,
|
||||
private readonly EntityManagerInterface $em,
|
||||
private readonly DownloadImages $downloadImages,
|
||||
private $enabled,
|
||||
private LoggerInterface $logger,
|
||||
private readonly LoggerInterface $logger,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -10,8 +10,8 @@ use Wallabag\Event\ConfigUpdatedEvent;
|
||||
class GenerateCustomCSSSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManagerInterface $em,
|
||||
private Compiler $compiler,
|
||||
private readonly EntityManagerInterface $em,
|
||||
private readonly Compiler $compiler,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ use Wallabag\Entity\Entry;
|
||||
class SQLiteCascadeDeleteSubscriber implements EventSubscriber
|
||||
{
|
||||
public function __construct(
|
||||
private ManagerRegistry $doctrine,
|
||||
private readonly ManagerRegistry $doctrine,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs;
|
||||
class SchemaAdapterSubscriber implements EventSubscriber
|
||||
{
|
||||
public function __construct(
|
||||
private string $databaseTablePrefix,
|
||||
private readonly string $databaseTablePrefix,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user