File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 22
33namespace Nyholm \BundleTest ;
44
5+ use Symfony \Bundle \FrameworkBundle \CacheWarmer \ConfigBuilderCacheWarmer ;
56use Symfony \Bundle \FrameworkBundle \FrameworkBundle ;
67use Symfony \Component \Config \Loader \LoaderInterface ;
78use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
@@ -52,7 +53,13 @@ public function __construct($cachePrefix)
5253 parent ::__construct ($ cachePrefix , true );
5354 $ this ->cachePrefix = $ cachePrefix ;
5455 $ this ->addBundle (FrameworkBundle::class);
56+
5557 $ this ->addConfigFile (__DIR__ .'/config/framework.yml ' );
58+ if (class_exists (ConfigBuilderCacheWarmer::class)) {
59+ $ this ->addConfigFile (__DIR__ .'/config/framework-53.yml ' );
60+ } else {
61+ $ this ->addConfigFile (__DIR__ .'/config/framework-52.yml ' );
62+ }
5663 }
5764
5865 /**
Original file line number Diff line number Diff line change 1+ framework :
2+ session :
3+ storage_id : session.storage.mock_file
Original file line number Diff line number Diff line change 1+ framework :
2+ session :
3+ storage_factory_id : session.storage.factory.native
You can’t perform that action at this time.
0 commit comments