Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c392a0

Browse files
authored
minor #12789 [API] Disable API by default (GSadee)
This PR was merged into the 1.9 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.9 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | fixes #12771 | License | MIT Commits ------- 91e84e4 [API] Disable API by default 2ecd69b [API] Move note about disabled API to proper section
2 parents 4ef47e6 + 2ecd69b commit 2c392a0

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

UPGRADE-1.9.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# UPGRADE FROM `v1.9.5` TO `v1.9.6`
2+
3+
1. API is disabled by default, to enable it you need to set flag to ``true`` in ``app/config/packages/_sylius.yaml``:
4+
5+
```yaml
6+
sylius_api:
7+
enabled: true
8+
```
9+
110
# UPGRADE FROM `v1.9.3` TO `v1.9.4`
211

312
1. `Sylius\Bundle\ApiBundle\DataProvider\OrderCollectionDataProvider` has been removed and the same logic
@@ -110,8 +119,6 @@ and its first argument `NormalizerInterface $objectNormalizer` has been removed
110119

111120
### New API
112121

113-
1. Api is disabled by default, to enable it you need to set flag ``sylius_api.enabled`` to ``true`` in ``app/config/packages/_sylius.yaml``.
114-
115122
1. Adjust your `config/packages/security.yaml`.
116123

117124
* Parameters from `config/packages/security.yaml` has been moved to separated bundles.

src/Sylius/Bundle/ApiBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getConfigTreeBuilder(): TreeBuilder
3030
$rootNode
3131
->children()
3232
->booleanNode('enabled')
33-
->defaultTrue()
33+
->defaultFalse()
3434
->end()
3535
->end()
3636
;

0 commit comments

Comments
 (0)