File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 3030 "phpstan/phpstan-phpunit" : " ^1.0" ,
3131 "phpstan/phpstan-strict-rules" : " ^1.0" ,
3232 "phpunit/phpunit" : " ^9.5" ,
33- "ramsey/uuid-doctrine" : " ^1.5.0"
33+ "ramsey/uuid-doctrine" : " ^1.5.0" ,
34+ "symfony/cache" : " ^4.4.35"
3435 },
3536 "config" : {
3637 "platform" : {
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
33use Doctrine \Common \Annotations \AnnotationReader ;
4- use Doctrine \Common \Cache \ArrayCache ;
54use Doctrine \ODM \MongoDB \Configuration ;
65use Doctrine \ODM \MongoDB \DocumentManager ;
76use Doctrine \ODM \MongoDB \Mapping \Driver \AnnotationDriver ;
7+ use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8+ use Symfony \Component \Cache \DoctrineProvider ;
89
910$ config = new Configuration ();
1011$ config ->setProxyDir (__DIR__ );
1112$ config ->setProxyNamespace ('PHPstan\Doctrine\OdmProxies ' );
12- $ config ->setMetadataCacheImpl (new ArrayCache ( ));
13+ $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
1314$ config ->setHydratorDir (__DIR__ );
1415$ config ->setHydratorNamespace ('PHPstan\Doctrine\OdmHydrators ' );
1516
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
33use Doctrine \Common \Annotations \AnnotationReader ;
4- use Doctrine \Common \Cache \ArrayCache ;
54use Doctrine \ORM \Configuration ;
65use Doctrine \ORM \EntityManager ;
76use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
7+ use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8+ use Symfony \Component \Cache \DoctrineProvider ;
89
910$ config = new Configuration ();
1011$ config ->setProxyDir (__DIR__ );
1112$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
12- $ config ->setMetadataCacheImpl (new ArrayCache ( ));
13+ $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
1314
1415$ config ->setMetadataDriverImpl (
1516 new AnnotationDriver (
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
33use Doctrine \Common \Annotations \AnnotationReader ;
4- use Doctrine \Common \Cache \ArrayCache ;
54use Doctrine \ORM \Configuration ;
65use Doctrine \ORM \EntityManager ;
76use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
7+ use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8+ use Symfony \Component \Cache \DoctrineProvider ;
89
910$ config = new Configuration ();
1011$ config ->setProxyDir (__DIR__ );
1112$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
12- $ config ->setMetadataCacheImpl (new ArrayCache ( ));
13+ $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
1314
1415$ config ->setMetadataDriverImpl (
1516 new AnnotationDriver (
You can’t perform that action at this time.
0 commit comments