-
Notifications
You must be signed in to change notification settings - Fork 116
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
Conversation
There was a problem hiding this 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.
bundles/trash.rst
Outdated
.. 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``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a tip with the specific tag after every code block and not only to one of the blocks:
bundles/trash.rst
Outdated
@@ -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. |
There was a problem hiding this comment.
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
.
@alexander-schranz added your suggestions, please have a final look :) |
@TheCadien Thank you! |
What's in this PR?
Add a Tip for Tagging the TrashItemHandler in External Services
Why?
Missing Docs