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 Tip for Tags in TrashItemHandler #697

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

TheCadien
Copy link
Member

Q A
License MIT

What's in this PR?

Add a Tip for Tagging the TrashItemHandler in External Services

Why?

Missing Docs

Copy link
Member

@alexander-schranz alexander-schranz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small change request to split the tip and change the wording of the message a little bit to match symfony here better.

Comment on lines 120 to 124
.. Tip::

If `TrashItemHandler` is created outside of a Sulu sulu/skeleton application, for example in a separate bundle, the automatic autowire of the Trash bundle does not work.
In this case the handler must be tagged with the following tags.
``sulu_trash.store_trash_item_handler`` , ``sulu_trash.restore_trash_item_handler`` and ``sulu_trash.restore_configuration_provider``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -117,6 +117,13 @@ with the correct data.
}
}

.. Tip::

If `TrashItemHandler` is created outside of a Sulu sulu/skeleton application, for example in a separate bundle, the automatic autowire of the Trash bundle does not work.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would here go with the same links and wording like in the symfony documentation:

If you're using the default services.yaml configuration, this example will already work! Otherwise, create a service for this class and tag it with sulu_trash.store_trash_item_handler.

@Prokyonn
Copy link
Member

@alexander-schranz added your suggestions, please have a final look :)

@alexander-schranz alexander-schranz merged commit 929350c into sulu:2.4 Apr 26, 2024
1 check passed
@alexander-schranz
Copy link
Member

@TheCadien Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants