File tree Expand file tree Collapse file tree 7 files changed +13
-18
lines changed
Type/Doctrine/data/QueryResult Expand file tree Collapse file tree 7 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 1717 "doctrine/persistence" : " <1.3"
1818 },
1919 "require-dev" : {
20+ "cache/array-adapter" : " ^1.1" ,
2021 "composer/semver" : " ^3.3.2" ,
2122 "doctrine/annotations" : " ^1.11 || ^2.0" ,
2223 "doctrine/collections" : " ^1.6 || ^2.1" ,
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
3+ use Cache \Adapter \PHPArray \ArrayCachePool ;
34use Doctrine \Common \Annotations \AnnotationReader ;
45use Doctrine \ODM \MongoDB \Configuration ;
56use Doctrine \ODM \MongoDB \DocumentManager ;
67use Doctrine \ODM \MongoDB \Mapping \Driver \AnnotationDriver ;
7- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8- use Symfony \Component \Cache \DoctrineProvider ;
98
109$ config = new Configuration ();
1110$ config ->setProxyDir (__DIR__ );
1211$ config ->setProxyNamespace ('PHPstan\Doctrine\OdmProxies ' );
13- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
12+ $ config ->setMetadataCache (new ArrayCachePool ( ));
1413$ config ->setHydratorDir (__DIR__ );
1514$ config ->setHydratorNamespace ('PHPstan\Doctrine\OdmHydrators ' );
1615
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
3+ use Cache \Adapter \PHPArray \ArrayCachePool ;
34use Doctrine \Common \Annotations \AnnotationReader ;
45use Doctrine \ORM \Configuration ;
56use Doctrine \ORM \EntityManager ;
67use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
7- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8- use Symfony \Component \Cache \DoctrineProvider ;
98
109$ config = new Configuration ();
1110$ config ->setProxyDir (__DIR__ );
1211$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
13- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
12+ $ config ->setMetadataCache (new ArrayCachePool ( ));
1413
1514$ config ->setMetadataDriverImpl (
1615 new AnnotationDriver (
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
3+ use Cache \Adapter \PHPArray \ArrayCachePool ;
34use Doctrine \Common \Annotations \AnnotationReader ;
45use Doctrine \ORM \Configuration ;
56use Doctrine \ORM \EntityManager ;
67use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
78use Doctrine \ORM \Mapping \Driver \AttributeDriver ;
89use Doctrine \Persistence \Mapping \Driver \MappingDriverChain ;
9- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
10- use Symfony \Component \Cache \DoctrineProvider ;
1110
1211$ config = new Configuration ();
1312$ config ->setProxyDir (__DIR__ );
1413$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
15- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
14+ $ config ->setMetadataCache (new ArrayCachePool ( ));
1615
1716$ metadataDriver = new MappingDriverChain ();
1817$ metadataDriver ->addDriver (new AnnotationDriver (
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
3+ use Cache \Adapter \PHPArray \ArrayCachePool ;
34use Doctrine \Common \Annotations \AnnotationReader ;
45use Doctrine \DBAL \Types \DateTimeImmutableType ;
56use Doctrine \DBAL \Types \Type ;
89use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
910use Doctrine \ORM \Mapping \Driver \AttributeDriver ;
1011use Doctrine \Persistence \Mapping \Driver \MappingDriverChain ;
11- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
12- use Symfony \Component \Cache \DoctrineProvider ;
1312
1413$ config = new Configuration ();
1514$ config ->setProxyDir (__DIR__ );
1615$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
17- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
16+ $ config ->setMetadataCache (new ArrayCachePool ( ));
1817
1918$ metadataDriver = new MappingDriverChain ();
2019$ metadataDriver ->addDriver (new AnnotationDriver (
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
3+ use Cache \Adapter \PHPArray \ArrayCachePool ;
34use Doctrine \Common \Annotations \AnnotationReader ;
45use Doctrine \ORM \Configuration ;
56use Doctrine \ORM \EntityManager ;
67use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
78use Doctrine \ORM \Mapping \Driver \AttributeDriver ;
89use Doctrine \Persistence \Mapping \Driver \MappingDriverChain ;
9- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
10- use Symfony \Component \Cache \DoctrineProvider ;
1110
1211$ config = new Configuration ();
1312$ config ->setProxyDir (__DIR__ );
1413$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
15- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
14+ $ config ->setMetadataCache (new ArrayCachePool ( ));
1615
1716$ metadataDriver = new MappingDriverChain ();
1817$ metadataDriver ->addDriver (new AnnotationDriver (
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
3+ use Cache \Adapter \PHPArray \ArrayCachePool ;
34use Doctrine \Common \Annotations \AnnotationReader ;
45use Doctrine \ORM \Configuration ;
56use Doctrine \ORM \EntityManager ;
67use Doctrine \ORM \Mapping \Column ;
78use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
89use Doctrine \ORM \Mapping \Driver \AttributeDriver ;
910use Doctrine \Persistence \Mapping \Driver \MappingDriverChain ;
10- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
11- use Symfony \Component \Cache \DoctrineProvider ;
1211
1312$ config = new Configuration ();
1413$ config ->setProxyDir (__DIR__ );
1514$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
16- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
15+ $ config ->setMetadataCache (new ArrayCachePool ( ));
1716
1817$ metadataDriver = new MappingDriverChain ();
1918
You can’t perform that action at this time.
0 commit comments