File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1111namespace BitBag \SyliusCmsPlugin \DependencyInjection ;
1212
1313use Sylius \Bundle \CoreBundle \DependencyInjection \PrependDoctrineMigrationsTrait ;
14+ use Symfony \Component \Config \Definition \ConfigurationInterface ;
1415use Symfony \Component \DependencyInjection \ContainerBuilder ;
1516use Symfony \Component \DependencyInjection \Extension \Extension ;
1617use Symfony \Component \DependencyInjection \Extension \PrependExtensionInterface ;
@@ -21,7 +22,9 @@ final class BitBagSyliusCmsExtension extends Extension implements PrependExtensi
2122
2223 public function load (array $ configs , ContainerBuilder $ container ): void
2324 {
24- $ config = $ this ->processConfiguration ($ this ->getConfiguration ([], $ container ), $ configs );
25+ /** @var ConfigurationInterface $configuration */
26+ $ configuration = $ this ->getConfiguration ([], $ container );
27+ $ config = $ this ->processConfiguration ($ configuration , $ configs );
2528
2629 $ container ->setParameter ('bitbag_sylius_cms_plugin.wysiwyg_editor ' , $ config ['wysiwyg_editor ' ]);
2730 }
Original file line number Diff line number Diff line change 1010
1111namespace BitBag \SyliusCmsPlugin \DependencyInjection ;
1212
13+ use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
1314use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
1415use Symfony \Component \Config \Definition \ConfigurationInterface ;
1516
@@ -18,6 +19,7 @@ final class Configuration implements ConfigurationInterface
1819 public function getConfigTreeBuilder (): TreeBuilder
1920 {
2021 $ treeBuilder = new TreeBuilder ('bitbag_sylius_cms_plugin ' );
22+ /** @var ArrayNodeDefinition $rootNode */
2123 $ rootNode = $ treeBuilder ->getRootNode ();
2224
2325 $ rootNode
You can’t perform that action at this time.
0 commit comments