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

Skip to content

Commit 169a76d

Browse files
authored
minor Sylius#16105 [Maintenance] Update upgrade file (Wojdylak)
This PR was merged into the 1.13 branch. Discussion ---------- | Q | A | |-----------------|--------------------------------------------------------------| | Branch? | 1.13 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | Sylius#16100 | License | MIT Commits ------- f0de556 [Maintenance] Update upgrade file
2 parents 8974f4c + f0de556 commit 169a76d

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

UPGRADE-1.13.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ To ease the update process, we have grouped the changes into the following categ
564564
autoconfigure_with_attributes: true
565565
```
566566

567-
and use one of the new attributes accordingly to the type of your class, e.g.:
567+
and use one of the new attributes accordingly to the type of your class, e.g.:
568568

569569
```php
570570
<?php
@@ -794,6 +794,44 @@ and use one of the new attributes accordingly to the type of your class, e.g.:
794794

795795
1. The `sylius_inventory.checker` configuration node has been deprecated and will be removed in 2.0.
796796

797+
1. Due to changes in API paths, the `security` configuration has been changed:
798+
```yaml
799+
security:
800+
...
801+
firewalls:
802+
new_api_admin_user:
803+
json_login:
804+
- check_path: "%sylius.security.new_api_admin_route%/authentication-token"
805+
+ check_path: "%sylius.security.new_api_admin_route%/administrators/token"
806+
...
807+
new_api_shop_user:
808+
json_login:
809+
- check_path: "%sylius.security.new_api_shop_route%/authentication-token"
810+
+ check_path: "%sylius.security.new_api_shop_route%/customers/token"
811+
...
812+
access_control:
813+
...
814+
- - { path: "%sylius.security.new_api_admin_route%/reset-password-requests", role: PUBLIC_ACCESS }
815+
+ - { path: "%sylius.security.new_api_admin_route%/administrators/reset-password", role: PUBLIC_ACCESS }
816+
- - { path: "%sylius.security.new_api_admin_route%/authentication-token", role: PUBLIC_ACCESS }
817+
+ - { path: "%sylius.security.new_api_admin_route%/administrators/token", role: PUBLIC_ACCESS }
818+
- - { path: "%sylius.security.new_api_shop_route%/authentication-token", role: PUBLIC_ACCESS }
819+
+ - { path: "%sylius.security.new_api_shop_route%/customers/token", role: PUBLIC_ACCESS }
820+
```
821+
822+
1. A new firewall has been added to the `security` configuration:
823+
```yaml
824+
security:
825+
...
826+
firewalls:
827+
...
828+
image_resolver:
829+
pattern: ^/media/cache/resolve
830+
security: false
831+
...
832+
...
833+
```
834+
797835
### State Machine
798836

799837
1. We have configured all existing Sylius graphs to be usable with the Symfony Workflow out of the box.

0 commit comments

Comments
 (0)