Skip to content

Latest commit

 

History

History
44 lines (43 loc) · 2.03 KB

2023-02-23-refactor-namespace-for-app-flow-actions.md

File metadata and controls

44 lines (43 loc) · 2.03 KB
title issue
Refactor namespace for app flow actions
NEXT-25362

Core

  • Changed namespace from Shopware\Core\Framework\App\FlowAction to Shopware\Core\Framework\App\Flow\Action for classes bellow:
    • FlowAction.php
    • AppFlowActionProvider.php
    • AppFlowActionLoadedSubscriber.php
  • Changed namespace from Shopware\Core\Framework\App\FlowAction\Xml to Shopware\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 use Shopware\Core\Framework\App\Flow\FlowAction\AppFlowActionProvider instead.
  • Deprecated Shopware\Core\Framework\App\FlowAction\Schema\flow-action-1.0.xsd use Shopware\Core\Framework\App\Flow\Schema\flow-1.0.xsd instead.

Upgrade Information

The app custom trigger and the app action can be defined in one xml file.

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>

Next Major Version Changes

Removal of flow-action-1.0.xsd

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.

Removal of Shopware\Core\Framework\App\FlowAction and Shopware\Core\Framework\App\FlowAction\Xml

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.