Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #[IsFlowEventAware] when defining a new Aware interface #1492

Open
applifaction opened this issue Sep 23, 2024 · 3 comments
Open

Add #[IsFlowEventAware] when defining a new Aware interface #1492

applifaction opened this issue Sep 23, 2024 · 3 comments
Assignees
Labels
DX Team #dev-docs

Comments

@applifaction
Copy link

#[IsFlowEventAware] should be added in the code sample for defining a new "Aware" interface:

See "### Create new Aware interface" in https://github.com/shopware/docs/blob/main/guides/plugins/plugins/framework/flow/add-flow-builder-action.md?plain=1

// <plugin root>/src/Core/Framework/Event/TagAware.php
<?php declare(strict_types=1);
namespace Swag\ExamplePlugin\Core\Framework\Event;
use Shopware\Core\Framework\Event\FlowEventAware;

#[IsFlowEventAware]
interface TagAware extends FlowEventAware
{
    ...

    public const TAG = 'tag';

    public const TAG_ID = 'tagId';

    public function getTag();

    ...
}
@Isengo1989
Copy link
Collaborator

@applifaction what is meant by "in the code sample for defining a new "Aware" interface" - can you link the existing part in docs where this should be added?

@applifaction
Copy link
Author

Interfaces which extend FlowEventAware like TagAware

@Isengo1989
Copy link
Collaborator

Ok, got it, thx for feedback.

@Isengo1989 Isengo1989 self-assigned this Oct 23, 2024
@Isengo1989 Isengo1989 added the DX Team #dev-docs label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Team #dev-docs
Projects
None yet
Development

No branches or pull requests

2 participants