Skip to content

Commit

Permalink
Merge pull request #861 from NoResponseMate/1.11-remove-unused-option…
Browse files Browse the repository at this point in the history
…s-node

[Maintenance] Deprecate unused configuration nodes
  • Loading branch information
GSadee authored Sep 26, 2024
2 parents 86960fd + e73646c commit 33ed7b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ sylius_resource:
factory: Sylius\Component\Resource\Factory\Factory
form: Sylius\Bundle\ResourceBundle\Form\Type\DefaultResourceType
validation_groups: [sylius]
options:
object_manager: default
templates:
form: Book/_form.html.twig
translation:
Expand All @@ -28,7 +26,6 @@ sylius_resource:
validation_groups: [sylius]
templates:
form: Book/Translation/_form.html.twig
options: ~
```
## Routing Generator Configuration Reference
Expand Down
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 33ed7b1

Please sign in to comment.