@@ -297,7 +297,7 @@ public function register(): void
297
297
});
298
298
299
299
$ this ->app ->extend (PropertyMetadataFactoryInterface::class, function (PropertyInfoPropertyMetadataFactory $ inner , Application $ app ) {
300
- /** @var ConfigRepository */
300
+ /** @var ConfigRepository $config */
301
301
$ config = $ app ['config ' ];
302
302
303
303
return new CachePropertyMetadataFactory (
@@ -313,12 +313,12 @@ public function register(): void
313
313
$ app ->make (ResourceClassResolverInterface::class)
314
314
),
315
315
),
316
- true === $ config ->get ('app.debug ' ) ? 'array ' : ' file '
316
+ true === $ config ->get ('app.debug ' ) ? 'array ' : $ config -> get ( ' cache.default ' , ' file ')
317
317
);
318
318
});
319
319
320
320
$ this ->app ->singleton (PropertyNameCollectionFactoryInterface::class, function (Application $ app ) {
321
- /** @var ConfigRepository */
321
+ /** @var ConfigRepository $config */
322
322
$ config = $ app ['config ' ];
323
323
324
324
return new CachePropertyNameCollectionMetadataFactory (
@@ -331,7 +331,7 @@ public function register(): void
331
331
)
332
332
)
333
333
),
334
- true === $ config ->get ('app.debug ' ) ? 'array ' : ' file '
334
+ true === $ config ->get ('app.debug ' ) ? 'array ' : $ config -> get ( ' cache.default ' , ' file ')
335
335
);
336
336
});
337
337
@@ -345,7 +345,7 @@ public function register(): void
345
345
346
346
// TODO: add cached metadata factories
347
347
$ this ->app ->singleton (ResourceMetadataCollectionFactoryInterface::class, function (Application $ app ) {
348
- /** @var ConfigRepository */
348
+ /** @var ConfigRepository $config */
349
349
$ config = $ app ['config ' ];
350
350
$ formats = $ config ->get ('api-platform.formats ' );
351
351
@@ -401,7 +401,7 @@ public function register(): void
401
401
$ app ->make ('filters ' )
402
402
)
403
403
),
404
- true === $ config ->get ('app.debug ' ) ? 'array ' : ' file '
404
+ true === $ config ->get ('app.debug ' ) ? 'array ' : $ config -> get ( ' cache.default ' , ' file ')
405
405
);
406
406
});
407
407
0 commit comments