|
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(newArrayAdapter())); |
| 16 | +$config->setMetadataCache(new ArrayCachePool()); |
18 | 17 |
|
19 | 18 | $metadataDriver = new MappingDriverChain();
|
20 | 19 | $metadataDriver->addDriver(new AnnotationDriver(
|
|
0 commit comments