File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77use Doctrine \Common \Annotations \AnnotationReader ;
88use Doctrine \Common \Annotations \PsrCachedReader ;
99use Doctrine \Common \Annotations \Reader ;
10- use Doctrine \Common \Cache \Cache ;
1110use Psr \Cache \CacheItemPoolInterface ;
1211use Psr \Container \ContainerExceptionInterface ;
1312use Psr \Container \ContainerInterface ;
1413use Psr \Container \NotFoundExceptionInterface ;
1514
1615abstract class AbstractAnnotatedFactory
1716{
18- const CACHE_SERVICE = CacheItemPoolInterface::class;
17+ public const CACHE_SERVICE = CacheItemPoolInterface::class;
1918 protected ?Reader $ annotationReader = null ;
2019 public function setAnnotationReader (Reader $ annotationReader ): void
2120 {
@@ -35,7 +34,7 @@ protected function createAnnotationReader(ContainerInterface $container): Reader
3534 if (! $ container ->has (self ::CACHE_SERVICE )) {
3635 return $ this ->annotationReader = new AnnotationReader ();
3736 } else {
38- /** @var Cache $cache */
37+ /** @var CacheItemPoolInterface $cache */
3938 $ cache = $ container ->get (self ::CACHE_SERVICE );
4039 $ debug = false ;
4140 if ($ container ->has ('config ' )) {
You can’t perform that action at this time.
0 commit comments