title | issue |
---|---|
Refactor namespace for app flow actions |
NEXT-25362 |
- Changed namespace from
Shopware\Core\Framework\App\FlowAction
toShopware\Core\Framework\App\Flow\Action
for classes bellow:- FlowAction.php
- AppFlowActionProvider.php
- AppFlowActionLoadedSubscriber.php
- Changed namespace from
Shopware\Core\Framework\App\FlowAction\Xml
toShopware\Core\Framework\App\Flow\Action\Xml
for classes bellow:- Action.php
- Actions.php
- Config.php
- Headers.php
- InputField.php
- Metadata.php
- Parameter.php
- Parameters.php
- Deprecated class
Shopware\Core\Framework\App\FlowAction\AppFlowActionProvider
useShopware\Core\Framework\App\Flow\FlowAction\AppFlowActionProvider
instead. - Deprecated
Shopware\Core\Framework\App\FlowAction\Schema\flow-action-1.0.xsd
useShopware\Core\Framework\App\Flow\Schema\flow-1.0.xsd
instead.
Since v6.5.2.0, we can define the flow custom trigger and the flow app action in one XML file.
To do that, we add the Shopware\Core\Framework\App\Flow\Schema\flow-1.0.xsd
to support defining both of them.
- Example
<flow-extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="flow-1.0.xsd">
<flow-events>
<flow-event>...</flow-event>
</flow-events>
<flow-actions>
<flow-action>...</flow-action>
</flow-actions>
</flow-extensions>
We removed Shopware\Core\Framework\App\FlowAction\Schema\flow-action-1.0.xsd
, use Shopware\Core\Framework\App\Flow\Schema\flow-1.0.xsd
instead.
We moved all class from namespaces Shopware\Core\Framework\App\FlowAction
to Shopware\Core\Framework\App\Flow\Action
and Shopware\Core\Framework\App\FlowAction\Xml
to Shopware\Core\Framework\App\Flow\Action\Xml
.
Please use new namespaces.