Skip to content

Commit

Permalink
[UPGRADE] Mention about changes in namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lchrusciel committed Feb 23, 2021
1 parent 583adb5 commit 0bd874b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions UPGRADE-1.8.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ If you are using they on your custom entity `api_resource` configuration or seri
- `zone_member:read` changed to: `admin:zone_member:read`
- removed redundant `zone_member:write`

1. Following namespaces has been changed:
* `\Sylius\Bundle\ApiBundle\Command\ChangeShopUserPassword` => `\Sylius\Bundle\ApiBundle\Command\Account\ChangeShopUserPassword`
* `\Sylius\Bundle\ApiBundle\CommandHandler\ChangeShopUserPasswordHandler` => `\Sylius\Bundle\ApiBundle\CommandHandler\Account\ChangeShopUserPasswordHandler`
* `\Sylius\Bundle\ApiBundle\Command\RegisterShopUser` => `\Sylius\Bundle\ApiBundle\Command\Account\RegisterShopUser`
* `\Sylius\Bundle\ApiBundle\CommandHandler\RegisterShopUserHandler` => `\Sylius\Bundle\ApiBundle\CommandHandler\Account\RegisterShopUserHandler`
* `\Sylius\Bundle\ApiBundle\CommandHandler\ShopUserIdAwareInterface` => `\Sylius\Bundle\ApiBundle\CommandHandler\Account\ShopUserIdAwareInterface`
* `\Sylius\Bundle\ApiBundle\CommandHandler\PickupCartHandler` => `\Sylius\Bundle\ApiBundle\CommandHandler\Cart\PickupCartHandler`

# UPGRADE FROM `v1.8.4` TO `v1.8.6`

1. Change configuration of new ApiBundle in your `config/packages/security.yaml` file:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

declare(strict_types=1);

namespace Sylius\Bundle\ApiBundle\CommandHandler;
namespace Sylius\Bundle\ApiBundle\CommandHandler\Cart;

use Doctrine\Persistence\ObjectManager;
use Sylius\Bundle\AdminApiBundle\Model\UserInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
>
<class name="Sylius\Bundle\ApiBundle\Command\RegisterShopUser">
<class name="Sylius\Bundle\ApiBundle\Command\Account\RegisterShopUser">
<attribute name="firstName">
<group>shop:customer:create</group>
</attribute>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<tag name="messenger.message_handler" bus="sylius_default.bus"/>
</service>

<service id="Sylius\Bundle\ApiBundle\CommandHandler\PickupCartHandler">
<service id="Sylius\Bundle\ApiBundle\CommandHandler\Cart\PickupCartHandler">
<argument type="service" id="sylius.factory.order" />
<argument type="service" id="sylius.repository.order" />
<argument type="service" id="sylius.repository.channel" />
Expand Down Expand Up @@ -96,7 +96,7 @@
<tag name="messenger.message_handler" bus="sylius_default.bus"/>
</service>

<service id="Sylius\Bundle\ApiBundle\CommandHandler\ChangeShopUserPasswordHandler">
<service id="Sylius\Bundle\ApiBundle\CommandHandler\Account\ChangeShopUserPasswordHandler">
<argument type="service" id="sylius.security.password_updater" />
<argument type="service" id="sylius.repository.shop_user" />
<tag name="messenger.message_handler" bus="sylius_default.bus"/>
Expand Down

0 comments on commit 0bd874b

Please sign in to comment.