forked from wallabag/wallabag
Migrate to readonly properties
This commit is contained in:
@ -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