|
1 | 1 | # 6.5.0.0
|
2 | 2 | ## Introduced in 6.4.17.0
|
3 | 3 | * 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`. |
10 | 11 |
|
11 | 12 | **before**
|
12 | 13 | ```xml
|
@@ -94,14 +95,17 @@ class SendMailAction extends FlowAction
|
94 | 95 | }
|
95 | 96 | }
|
96 | 97 | ```
|
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 | + |
98 | 100 | ## 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! |
101 | 103 | Additionally, the `@MIGRATION_{migration}_IS_ACTIVE` DB connection variables are not set at kernel boot anymore.
|
| 104 | + |
102 | 105 | ## 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 | + |
105 | 109 | ## Internal Migrations
|
106 | 110 | All DB migration steps are now considered `@internal`, as they never should be extended or adjusted afterwards.
|
107 | 111 |
|
|
0 commit comments