Skip to content

Commit

Permalink
[Maintenance][Configuration] Deprecate unused "options" nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
NoResponseMate committed Sep 26, 2024
1 parent 2e486ea commit 122f361
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ private function addResourcesSection(ArrayNodeDefinition $node): void
->arrayPrototype()
->children()
->scalarNode('driver')->defaultValue(SyliusResourceBundle::DRIVER_DOCTRINE_ORM)->end()
->variableNode('options')->end()
->variableNode('options')
->setDeprecated('sylius/resource-bundle', '1.12', 'The "%node%" node at "%path%" is deprecated and will be removed in 2.0.')
->end()
->scalarNode('templates')->cannotBeEmpty()->end()
->scalarNode('state_machine_component')->defaultNull()->end()
->arrayNode('classes')
Expand All @@ -80,7 +82,9 @@ private function addResourcesSection(ArrayNodeDefinition $node): void
->end()
->arrayNode('translation')
->children()
->variableNode('options')->end()
->variableNode('options')
->setDeprecated('sylius/resource-bundle', '1.12', 'The "%node%" node at "%path%" is deprecated and will be removed in 2.0.')
->end()
->arrayNode('classes')
->isRequired()
->addDefaultsIfNotSet()
Expand Down

0 comments on commit 122f361

Please sign in to comment.