@@ -279,7 +279,7 @@ public function register(): void
279
279
});
280
280
281
281
$ this ->app ->extend (PropertyMetadataFactoryInterface::class, function (PropertyInfoPropertyMetadataFactory $ inner , Application $ app ) {
282
- /** @var ConfigRepository */
282
+ /** @var ConfigRepository $config */
283
283
$ config = $ app ['config ' ];
284
284
285
285
return new CachePropertyMetadataFactory (
@@ -295,12 +295,12 @@ public function register(): void
295
295
$ app ->make (ResourceClassResolverInterface::class)
296
296
),
297
297
),
298
- true === $ config ->get ('app.debug ' ) ? 'array ' : ' file '
298
+ true === $ config ->get ('app.debug ' ) ? 'array ' : $ config -> get ( ' cache.default ' , ' file ')
299
299
);
300
300
});
301
301
302
302
$ this ->app ->singleton (PropertyNameCollectionFactoryInterface::class, function (Application $ app ) {
303
- /** @var ConfigRepository */
303
+ /** @var ConfigRepository $config */
304
304
$ config = $ app ['config ' ];
305
305
306
306
return new CachePropertyNameCollectionMetadataFactory (
@@ -313,7 +313,7 @@ public function register(): void
313
313
)
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
@@ -327,7 +327,7 @@ public function register(): void
327
327
328
328
// TODO: add cached metadata factories
329
329
$ this ->app ->singleton (ResourceMetadataCollectionFactoryInterface::class, function (Application $ app ) {
330
- /** @var ConfigRepository */
330
+ /** @var ConfigRepository $config */
331
331
$ config = $ app ['config ' ];
332
332
$ formats = $ config ->get ('api-platform.formats ' );
333
333
@@ -382,7 +382,7 @@ public function register(): void
382
382
$ app ->make ('filters ' )
383
383
)
384
384
),
385
- true === $ config ->get ('app.debug ' ) ? 'array ' : ' file '
385
+ true === $ config ->get ('app.debug ' ) ? 'array ' : $ config -> get ( ' cache.default ' , ' file ')
386
386
);
387
387
});
388
388
0 commit comments