Skip to content

Commit 33ed7b1

Browse files
authored
Merge pull request #861 from NoResponseMate/1.11-remove-unused-options-node
[Maintenance] Deprecate unused configuration nodes
2 parents 86960fd + e73646c commit 33ed7b1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/reference.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ sylius_resource:
1313
factory: Sylius\Component\Resource\Factory\Factory
1414
form: Sylius\Bundle\ResourceBundle\Form\Type\DefaultResourceType
1515
validation_groups: [sylius]
16-
options:
17-
object_manager: default
1816
templates:
1917
form: Book/_form.html.twig
2018
translation:
@@ -28,7 +26,6 @@ sylius_resource:
2826
validation_groups: [sylius]
2927
templates:
3028
form: Book/Translation/_form.html.twig
31-
options: ~
3229
```
3330
3431
## Routing Generator Configuration Reference

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)