Skip to content

Commit b375e50

Browse files
marcelbrodephilipreinken
authored andcommitted
NEXT-23838 - Adjust wording
1 parent ef06985 commit b375e50

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

UPGRADE-6.4.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ UPGRADE FROM 6.3.x.x to 6.4
22
=======================
33

44
# 6.4.17.0
5-
* Themes snippets are now only applied to Storefront sales channels when they or their child theme are assigned to that sales channel
5+
* Themes' snippets are now only applied to Storefront sales channels when they or their child themes are assigned to that sales channel
66
## Disabling caching of store-api-routes
77
The Cache for Store-API-Routes can now be disabled by implementing the `Shopware\Core\Framework\Adapter\Cache\StoreApiRouteCacheKeyEvent` and calling `disableCache()` method on the event.
88
## Limit remote URL file upload max file size

UPGRADE-6.5.md

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# 6.5.0.0
22
## Introduced in 6.4.17.0
33
* In the next major, the flow actions are not executed over the symfony events anymore, we'll remove the dependence from `EventSubscriberInterface` in `Shopware\Core\Content\Flow\Dispatching\Action\FlowAction`.
4-
that means, all the flow actions extends from `FlowAction` are become the services tag.
5-
* The flow builder will execute the actions via call directly the `handleFlow` function instead `dispatch` an action event.
6-
* To get an action service in flow builder, we need define the tag action service with a unique key, that key should be an action name.
7-
* About the data we'll use in the flow actions, the data will be store in the `StorableFlow $flow`, use `$flow->getStore('order_id')` or `$flow->getData('order')` instead of `$flowEvent->getOrder`.
8-
* Use `$flow->getStore($key)` if you want to get the data from aware interfaces. E.g: `order_id` in `OrderAware`, `customer_id` from `CustomerAware` and so on.
9-
* Use `$flow->getData($key)` if you want to get the data from original events or additional data. E.g: `order`, `customer`, `contactFormData` and so on.
4+
* In the next major, the flow actions are not executed via symfony events anymore, we'll remove the dependency from `EventSubscriberInterface` in `Shopware\Core\Content\Flow\Dispatching\Action\FlowAction`.
5+
That means, all the flow actions extending `FlowAction` get the "services" tag.
6+
* The flow builder will execute the actions when calling the `handleFlow` function directly, instead of dispatching an action event.
7+
* To get an action service in flow builder, we need to define the tag action service with an unique key, which should be an action name.
8+
* The flow action data is stored in `StorableFlow $flow`, so you should use `$flow->getStore('order_id')` or `$flow->getData('order')` instead of `$flowEvent->getOrder`.
9+
* Use `$flow->getStore($key)` if you want to get the data from `aware` interfaces. Example: `order_id` in `OrderAware` or `customer_id` from `CustomerAware`.
10+
* Use `$flow->getData($key)` if you want to get the data from original events or additional data. Example: `order`, `customer` or `contactFormData`.
1011

1112
**before**
1213
```xml
@@ -94,14 +95,17 @@ class SendMailAction extends FlowAction
9495
}
9596
}
9697
```
97-
* The interface `Shopware\Core\System\Snippet\Files\SnippetFileInterface` is deprecated, please use `Shopware\Core\System\Snippet\Files\AbstractSnippetFile` instead .
98+
* The interface `Shopware\Core\System\Snippet\Files\SnippetFileInterface` is deprecated, please use `Shopware\Core\System\Snippet\Files\AbstractSnippetFile` instead.
99+
98100
## Remove old database migration trigger logic
99-
The `addForwardTrigger()`, `addBackwardTrigger()` and `addTrigger()` methods of the `MigrationStep`-class were removed, use `createTrigger()` instead.
100-
Do not rely on the state of the already executed migrations in your database trigger anymore.
101+
The `addForwardTrigger()`, `addBackwardTrigger()` and `addTrigger()` methods of the `MigrationStep` class were removed, use `createTrigger()` instead.
102+
Do not rely on the state of already executed migrations in your database triggers anymore!
101103
Additionally, the `@MIGRATION_{migration}_IS_ACTIVE` DB connection variables are not set at kernel boot anymore.
104+
102105
## Removal of `\Shopware\Core\Framework\Event\FlowEvent`
103-
We removed the `\Shopware\Core\Framework\Event\FlowEvent`, as Flow Actions are not executed over symfonys event system anymore.
104-
Implement the `handleFlow()` method in your `FlowAction` and tag your actions as `flow.action` instead.
106+
We removed `\Shopware\Core\Framework\Event\FlowEvent`, since Flow Actions are not executed via symfony's event system anymore.
107+
You should implement the `handleFlow()` method in your `FlowAction` and tag your actions as `flow.action`.
108+
105109
## Internal Migrations
106110
All DB migration steps are now considered `@internal`, as they never should be extended or adjusted afterwards.
107111

0 commit comments

Comments
 (0)