diff --git a/composer.json b/composer.json index 7c386d55c..ee79b75f8 100644 --- a/composer.json +++ b/composer.json @@ -32,17 +32,16 @@ ], "require": { "php": "^7.4 || ^8.2", - "doctrine/cache": "^1.0", "doctrine/collections": "^1.0", "exiftool/exiftool": "*", - "symfony/console": "^5 || ^6.2", - "symfony/css-selector": "^5 || ^6.2", - "symfony/dom-crawler": "^5 || ^6.2", - "symfony/process": "^5 || ^6", + "symfony/console": "^5 || ^6.2 || ^7.0", + "symfony/css-selector": "^5 || ^6.2 || ^7.0", + "symfony/dom-crawler": "^5 || ^6.2 || ^7.0", + "symfony/process": "^5 || ^6 || ^7.0", "ext-dom": "*", - "cache/array-adapter": "^1.2", "ext-json": "*", - "symfony/monolog-bridge": "^5.4 || ^6.2" + "symfony/monolog-bridge": "^5.4 || ^6.2 || ^7.0", + "symfony/cache": "^5 || ^6.2 || ^7.0" }, "suggest": { "jms/serializer": "To serialize tags", @@ -52,7 +51,7 @@ "jms/serializer": "~3", "phpunit/phpunit": "^9.6.7", "symfony/finder": "^5", - "symfony/yaml": "^5 || ^6" + "symfony/yaml": "^5 || ^6 || ^7.0" }, "autoload": { "psr-4": { diff --git a/lib/PHPExiftool/FileEntity.php b/lib/PHPExiftool/FileEntity.php index 89a3e2307..c929e11a3 100644 --- a/lib/PHPExiftool/FileEntity.php +++ b/lib/PHPExiftool/FileEntity.php @@ -12,7 +12,6 @@ namespace PHPExiftool; -use Cache\Adapter\PHPArray\ArrayCachePool; use DOMDocument; use Exception; use IteratorAggregate; @@ -20,6 +19,7 @@ use PHPExiftool\Driver\Value\ValueInterface; use Psr\Cache\CacheItemPoolInterface; use Psr\Cache\InvalidArgumentException; +use Symfony\Component\Cache\Adapter\ArrayAdapter; /** @@ -51,7 +51,7 @@ public function __construct(string $file, DOMDocument $dom, RDFParser $parser) // $this->dom = $dom; $this->file = $file; - $this->cache = new ArrayCachePool(); + $this->cache = new ArrayAdapter(); $this->parser = $parser->open($dom->saveXML());