Verified Commit 2fcaa734 authored by Dave Long's avatar Dave Long
Browse files

refactor: #3559980 Make file module Hook class properties protected instead of private

By: kim.pepper
By: ritarshi_chakraborty
By: longwave
(cherry picked from commit 1380069e)
parent 57c568c5
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -21,13 +21,13 @@
class CronHook {

  public function __construct(
    private readonly EntityTypeManagerInterface $entityTypeManager,
    private readonly StreamWrapperManagerInterface $streamWrapperManager,
    private readonly ConfigFactoryInterface $configFactory,
    private readonly FileUsageInterface $fileUsage,
    private readonly TimeInterface $time,
    protected readonly EntityTypeManagerInterface $entityTypeManager,
    protected readonly StreamWrapperManagerInterface $streamWrapperManager,
    protected readonly ConfigFactoryInterface $configFactory,
    protected readonly FileUsageInterface $fileUsage,
    protected readonly TimeInterface $time,
    #[Autowire('@logger.channel.file')]
    private readonly LoggerInterface $logger,
    protected readonly LoggerInterface $logger,
  ) {}

  /**
+3 −3
Original line number Diff line number Diff line
@@ -17,9 +17,9 @@
class FileDownloadHook {

  public function __construct(
    private readonly FileRepositoryInterface $fileRepository,
    private readonly FileUsageInterface $fileUsage,
    private readonly AccountInterface $currentUser,
    protected readonly FileRepositoryInterface $fileRepository,
    protected readonly FileUsageInterface $fileUsage,
    protected readonly AccountInterface $currentUser,
  ) {}

  /**
+3 −3
Original line number Diff line number Diff line
@@ -20,9 +20,9 @@ class TokenHooks {
  use StringTranslationTrait;

  public function __construct(
    private readonly Token $token,
    private readonly DateFormatterInterface $dateFormatter,
    private readonly EntityTypeManagerInterface $entityTypeManager,
    protected readonly Token $token,
    protected readonly DateFormatterInterface $dateFormatter,
    protected readonly EntityTypeManagerInterface $entityTypeManager,
  ) {}

  /**