Skip to content

Commit 122f361

Browse files
[Maintenance][Configuration] Deprecate unused "options" nodes
1 parent 2e486ea commit 122f361

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Bundle/DependencyInjection/Configuration.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ private function addResourcesSection(ArrayNodeDefinition $node): void
6363
->arrayPrototype()
6464
->children()
6565
->scalarNode('driver')->defaultValue(SyliusResourceBundle::DRIVER_DOCTRINE_ORM)->end()
66-
->variableNode('options')->end()
66+
->variableNode('options')
67+
->setDeprecated('sylius/resource-bundle', '1.12', 'The "%node%" node at "%path%" is deprecated and will be removed in 2.0.')
68+
->end()
6769
->scalarNode('templates')->cannotBeEmpty()->end()
6870
->scalarNode('state_machine_component')->defaultNull()->end()
6971
->arrayNode('classes')
@@ -80,7 +82,9 @@ private function addResourcesSection(ArrayNodeDefinition $node): void
8082
->end()
8183
->arrayNode('translation')
8284
->children()
83-
->variableNode('options')->end()
85+
->variableNode('options')
86+
->setDeprecated('sylius/resource-bundle', '1.12', 'The "%node%" node at "%path%" is deprecated and will be removed in 2.0.')
87+
->end()
8488
->arrayNode('classes')
8589
->isRequired()
8690
->addDefaultsIfNotSet()

0 commit comments

Comments
 (0)