Commit 06b8d836 authored by catch's avatar catch
Browse files

fix: #3608288 Update FileReferenceResolver::__construct() to use the more...

fix: #3608288 Update FileReferenceResolver::__construct() to use the more generic CacheBackendInterface

By: rszrama
By: berdir
(cherry picked from commit e2bbdab7)
parent a16c3858
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4,8 +4,8 @@

namespace Drupal\file;

use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Cache\MemoryCache\MemoryCacheInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\Core\Entity\RevisionableStorageInterface;
@@ -40,7 +40,7 @@ class FileReferenceResolver {
  public function __construct(
    protected EntityTypeManagerInterface $entityTypeManager,
    #[Autowire(service: 'cache.memory')]
    protected MemoryCacheInterface $memoryCache,
    protected CacheBackendInterface $memoryCache,
    protected FileUsageInterface $fileUsage,
  ) {