File tree 7 files changed +13
-18
lines changed
Type/Doctrine/data/QueryResult
7 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 17
17
"doctrine/persistence" : " <1.3"
18
18
},
19
19
"require-dev" : {
20
+ "cache/array-adapter" : " ^1.1" ,
20
21
"composer/semver" : " ^3.3.2" ,
21
22
"doctrine/annotations" : " ^1.11 || ^2.0" ,
22
23
"doctrine/collections" : " ^1.6 || ^2.1" ,
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types = 1 );
2
2
3
+ use Cache \Adapter \PHPArray \ArrayCachePool ;
3
4
use Doctrine \Common \Annotations \AnnotationReader ;
4
5
use Doctrine \ODM \MongoDB \Configuration ;
5
6
use Doctrine \ODM \MongoDB \DocumentManager ;
6
7
use Doctrine \ODM \MongoDB \Mapping \Driver \AnnotationDriver ;
7
- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8
- use Symfony \Component \Cache \DoctrineProvider ;
9
8
10
9
$ config = new Configuration ();
11
10
$ config ->setProxyDir (__DIR__ );
12
11
$ config ->setProxyNamespace ('PHPstan\Doctrine\OdmProxies ' );
13
- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
12
+ $ config ->setMetadataCache (new ArrayCachePool ( ));
14
13
$ config ->setHydratorDir (__DIR__ );
15
14
$ config ->setHydratorNamespace ('PHPstan\Doctrine\OdmHydrators ' );
16
15
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types = 1 );
2
2
3
+ use Cache \Adapter \PHPArray \ArrayCachePool ;
3
4
use Doctrine \Common \Annotations \AnnotationReader ;
4
5
use Doctrine \ORM \Configuration ;
5
6
use Doctrine \ORM \EntityManager ;
6
7
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
7
- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
8
- use Symfony \Component \Cache \DoctrineProvider ;
9
8
10
9
$ config = new Configuration ();
11
10
$ config ->setProxyDir (__DIR__ );
12
11
$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
13
- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
12
+ $ config ->setMetadataCache (new ArrayCachePool ( ));
14
13
15
14
$ config ->setMetadataDriverImpl (
16
15
new AnnotationDriver (
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types = 1 );
2
2
3
+ use Cache \Adapter \PHPArray \ArrayCachePool ;
3
4
use Doctrine \Common \Annotations \AnnotationReader ;
4
5
use Doctrine \ORM \Configuration ;
5
6
use Doctrine \ORM \EntityManager ;
6
7
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
7
8
use Doctrine \ORM \Mapping \Driver \AttributeDriver ;
8
9
use Doctrine \Persistence \Mapping \Driver \MappingDriverChain ;
9
- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
10
- use Symfony \Component \Cache \DoctrineProvider ;
11
10
12
11
$ config = new Configuration ();
13
12
$ config ->setProxyDir (__DIR__ );
14
13
$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
15
- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
14
+ $ config ->setMetadataCache (new ArrayCachePool ( ));
16
15
17
16
$ metadataDriver = new MappingDriverChain ();
18
17
$ metadataDriver ->addDriver (new AnnotationDriver (
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types = 1 );
2
2
3
+ use Cache \Adapter \PHPArray \ArrayCachePool ;
3
4
use Doctrine \Common \Annotations \AnnotationReader ;
4
5
use Doctrine \DBAL \Types \DateTimeImmutableType ;
5
6
use Doctrine \DBAL \Types \Type ;
8
9
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
9
10
use Doctrine \ORM \Mapping \Driver \AttributeDriver ;
10
11
use Doctrine \Persistence \Mapping \Driver \MappingDriverChain ;
11
- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
12
- use Symfony \Component \Cache \DoctrineProvider ;
13
12
14
13
$ config = new Configuration ();
15
14
$ config ->setProxyDir (__DIR__ );
16
15
$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
17
- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
16
+ $ config ->setMetadataCache (new ArrayCachePool ( ));
18
17
19
18
$ metadataDriver = new MappingDriverChain ();
20
19
$ metadataDriver ->addDriver (new AnnotationDriver (
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types = 1 );
2
2
3
+ use Cache \Adapter \PHPArray \ArrayCachePool ;
3
4
use Doctrine \Common \Annotations \AnnotationReader ;
4
5
use Doctrine \ORM \Configuration ;
5
6
use Doctrine \ORM \EntityManager ;
6
7
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
7
8
use Doctrine \ORM \Mapping \Driver \AttributeDriver ;
8
9
use Doctrine \Persistence \Mapping \Driver \MappingDriverChain ;
9
- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
10
- use Symfony \Component \Cache \DoctrineProvider ;
11
10
12
11
$ config = new Configuration ();
13
12
$ config ->setProxyDir (__DIR__ );
14
13
$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
15
- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
14
+ $ config ->setMetadataCache (new ArrayCachePool ( ));
16
15
17
16
$ metadataDriver = new MappingDriverChain ();
18
17
$ metadataDriver ->addDriver (new AnnotationDriver (
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types = 1 );
2
2
3
+ use Cache \Adapter \PHPArray \ArrayCachePool ;
3
4
use Doctrine \Common \Annotations \AnnotationReader ;
4
5
use Doctrine \ORM \Configuration ;
5
6
use Doctrine \ORM \EntityManager ;
6
7
use Doctrine \ORM \Mapping \Column ;
7
8
use Doctrine \ORM \Mapping \Driver \AnnotationDriver ;
8
9
use Doctrine \ORM \Mapping \Driver \AttributeDriver ;
9
10
use Doctrine \Persistence \Mapping \Driver \MappingDriverChain ;
10
- use Symfony \Component \Cache \Adapter \ArrayAdapter ;
11
- use Symfony \Component \Cache \DoctrineProvider ;
12
11
13
12
$ config = new Configuration ();
14
13
$ config ->setProxyDir (__DIR__ );
15
14
$ config ->setProxyNamespace ('PHPstan\Doctrine\OrmProxies ' );
16
- $ config ->setMetadataCacheImpl (new DoctrineProvider ( new ArrayAdapter () ));
15
+ $ config ->setMetadataCache (new ArrayCachePool ( ));
17
16
18
17
$ metadataDriver = new MappingDriverChain ();
19
18
You can’t perform that action at this time.
0 commit comments