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 30
30
"phpstan/phpstan-phpunit" : " ^1.0" ,
31
31
"phpstan/phpstan-strict-rules" : " ^1.0" ,
32
32
"phpunit/phpunit" : " ^9.5" ,
33
- "ramsey/uuid-doctrine" : " ^1.5.0"
33
+ "ramsey/uuid-doctrine" : " ^1.5.0" ,
34
+ "symfony/cache" : " ^4.4.35"
34
35
},
35
36
"config" : {
36
37
"platform" : {
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types = 1 );
2
2
3
3
use Doctrine \Common \Annotations \AnnotationReader ;
4
- use Doctrine \Common \Cache \ArrayCache ;
5
4
use Doctrine \ODM \MongoDB \Configuration ;
6
5
use Doctrine \ODM \MongoDB \DocumentManager ;
7
6
use Doctrine \ODM \MongoDB \Mapping \Driver \AnnotationDriver ;
7
+ use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8
+ use Symfony \Component \Cache \DoctrineProvider ;
8
9
9
10
$ config = new Configuration ();
10
11
$ config ->setProxyDir (__DIR__ );
11
12
$ config ->setProxyNamespace ('PHPstan\Doctrine\OdmProxies ' );
12
- $ config ->setMetadataCacheImpl (new ArrayCache ( ));
13
+ $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
13
14
$ config ->setHydratorDir (__DIR__ );
14
15
$ config ->setHydratorNamespace ('PHPstan\Doctrine\OdmHydrators ' );
15
16
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types = 1 );
2
2
3
3
use Doctrine \Common \Annotations \AnnotationReader ;
4
- use Doctrine \Common \Cache \ArrayCache ;
5
4
use Doctrine \ORM \Configuration ;
6
5
use Doctrine \ORM \EntityManager ;
7
6
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
7
+ use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8
+ use Symfony \Component \Cache \DoctrineProvider ;
8
9
9
10
$ config = new Configuration ();
10
11
$ config ->setProxyDir (__DIR__ );
11
12
$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
12
- $ config ->setMetadataCacheImpl (new ArrayCache ( ));
13
+ $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
13
14
14
15
$ config ->setMetadataDriverImpl (
15
16
new AnnotationDriver (
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types = 1 );
2
2
3
3
use Doctrine \Common \Annotations \AnnotationReader ;
4
- use Doctrine \Common \Cache \ArrayCache ;
5
4
use Doctrine \ORM \Configuration ;
6
5
use Doctrine \ORM \EntityManager ;
7
6
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
7
+ use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8
+ use Symfony \Component \Cache \DoctrineProvider ;
8
9
9
10
$ config = new Configuration ();
10
11
$ config ->setProxyDir (__DIR__ );
11
12
$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
12
- $ config ->setMetadataCacheImpl (new ArrayCache ( ));
13
+ $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
13
14
14
15
$ config ->setMetadataDriverImpl (
15
16
new AnnotationDriver (
You can’t perform that action at this time.
0 commit comments