@@ -279,7 +279,7 @@ public function register(): void
279279 });
280280
281281 $ this ->app ->extend (PropertyMetadataFactoryInterface::class, function (PropertyInfoPropertyMetadataFactory $ inner , Application $ app ) {
282- /** @var ConfigRepository */
282+ /** @var ConfigRepository $config */
283283 $ config = $ app ['config ' ];
284284
285285 return new CachePropertyMetadataFactory (
@@ -295,12 +295,12 @@ public function register(): void
295295 $ app ->make (ResourceClassResolverInterface::class)
296296 ),
297297 ),
298- true === $ config ->get ('app.debug ' ) ? 'array ' : ' file '
298+ true === $ config ->get ('app.debug ' ) ? 'array ' : $ config -> get ( ' cache.default ' , ' file ')
299299 );
300300 });
301301
302302 $ this ->app ->singleton (PropertyNameCollectionFactoryInterface::class, function (Application $ app ) {
303- /** @var ConfigRepository */
303+ /** @var ConfigRepository $config */
304304 $ config = $ app ['config ' ];
305305
306306 return new CachePropertyNameCollectionMetadataFactory (
@@ -313,7 +313,7 @@ public function register(): void
313313 )
314314 )
315315 ),
316- true === $ config ->get ('app.debug ' ) ? 'array ' : ' file '
316+ true === $ config ->get ('app.debug ' ) ? 'array ' : $ config -> get ( ' cache.default ' , ' file ')
317317 );
318318 });
319319
@@ -327,7 +327,7 @@ public function register(): void
327327
328328 // TODO: add cached metadata factories
329329 $ this ->app ->singleton (ResourceMetadataCollectionFactoryInterface::class, function (Application $ app ) {
330- /** @var ConfigRepository */
330+ /** @var ConfigRepository $config */
331331 $ config = $ app ['config ' ];
332332 $ formats = $ config ->get ('api-platform.formats ' );
333333
@@ -382,7 +382,7 @@ public function register(): void
382382 $ app ->make ('filters ' )
383383 )
384384 ),
385- true === $ config ->get ('app.debug ' ) ? 'array ' : ' file '
385+ true === $ config ->get ('app.debug ' ) ? 'array ' : $ config -> get ( ' cache.default ' , ' file ')
386386 );
387387 });
388388
0 commit comments