Skip to content
Snippets Groups Projects

Issue #3438010: Refactor Adapter Cache items for Flysystem 3.0.x, Drupal 10.3+ compatibility

Merged Issue #3438010: Refactor Adapter Cache items for Flysystem 3.0.x, Drupal 10.3+ compatibility
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -66,14 +66,14 @@ class CacheItemBackend {
* @param string $path
* The path of the item to load.
*
* @return \Drupal\flysystem\Flysystem\Adapter\CacheItem
* @return \Drupal\flysystem\Adapter\CacheItem
* The cache item, or a new cache item if one isn't in the cache.
*/
public function load($path) {
$key = $this->getCacheKey($path);
if ($cached = $this->cacheBackend->get($key)) {
/** @var \Drupal\flysystem\Flysystem\Adapter\CacheItem $item */
/** @var \Drupal\flysystem\Adapter\CacheItem $item */
$item = $cached->data;
}
else {
@@ -88,7 +88,7 @@ class CacheItemBackend {
*
* @param string $path
* The file path.
* @param \Drupal\flysystem\Flysystem\Adapter\CacheItem $item
* @param \Drupal\flysystem\Adapter\CacheItem $item
* The item to set.
*/
public function set($path, CacheItem $item) {
Loading