Skip to content

Commit 54c28af

Browse files
committed
fix for doctrine/annotations v2 deprecations
1 parent a14a90b commit 54c28af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Factory/AbstractAnnotatedFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
namespace Dot\AnnotatedServices\Factory;
66

77
use Doctrine\Common\Annotations\AnnotationReader;
8-
use Doctrine\Common\Annotations\AnnotationRegistry;
98
use Doctrine\Common\Annotations\PsrCachedReader;
109
use Doctrine\Common\Annotations\Reader;
1110
use Doctrine\Common\Cache\Cache;
11+
use Psr\Cache\CacheItemPoolInterface;
1212
use Psr\Container\ContainerExceptionInterface;
1313
use Psr\Container\ContainerInterface;
1414
use Psr\Container\NotFoundExceptionInterface;
1515

1616
abstract class AbstractAnnotatedFactory
1717
{
18-
public const CACHE_SERVICE = 'Psr\Cache\CacheItemPoolInterface';
18+
const CACHE_SERVICE = CacheItemPoolInterface::class;
1919
protected ?Reader $annotationReader = null;
2020
public function setAnnotationReader(Reader $annotationReader): void
2121
{

0 commit comments

Comments
 (0)