Skip to content

Commit 71ae58c

Browse files
authored
Fix doctrine cache on production (#1152)
`Doctrine\Common\Cache\Psr6\DoctrineProvider` is not available any more in latest doctrine
2 parents ce46c70 + 8cde065 commit 71ae58c

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

config/packages/doctrine.yaml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,14 @@ when@prod: &doctrine_prod
2727
entity_managers:
2828
default:
2929
metadata_cache_driver:
30-
type: service
31-
id: doctrine.system_cache_provider
30+
type: pool
31+
pool: doctrine.system_cache_pool
3232
query_cache_driver:
33-
type: service
34-
id: doctrine.system_cache_provider
33+
type: pool
34+
pool: doctrine.system_cache_pool
3535
result_cache_driver:
36-
type: service
37-
id: doctrine.result_cache_provider
38-
services:
39-
doctrine.result_cache_provider:
40-
class: Doctrine\Common\Cache\Psr6\DoctrineProvider
41-
public: false
42-
factory: [ 'Doctrine\Common\Cache\Psr6\DoctrineProvider', 'wrap' ]
43-
arguments:
44-
- '@doctrine.result_cache_pool'
45-
doctrine.system_cache_provider:
46-
class: Doctrine\Common\Cache\Psr6\DoctrineProvider
47-
public: false
48-
factory: [ 'Doctrine\Common\Cache\Psr6\DoctrineProvider', 'wrap' ]
49-
arguments:
50-
- '@doctrine.system_cache_pool'
36+
type: pool
37+
pool: doctrine.result_cache_pool
5138
framework:
5239
cache:
5340
pools:

0 commit comments

Comments
 (0)