Skip to content
Snippets Groups Projects
Unverified Commit 1e4bd68b authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3018091 by guilhermevp, vacho, shubhangi1995, joachim, longwave,...

Issue #3018091 by guilhermevp, vacho, shubhangi1995, joachim, longwave, wolffereast: TaggedHandlersPass::process() doesn't document some of its features
parent a4629b22
No related branches found
No related tags found
No related merge requests found
......@@ -65,11 +65,18 @@ class TaggedHandlersPass implements CompilerPassInterface {
*
* Additional tag attributes supported by 'service_collector' only:
* - call: The method name to call on the consumer service. Defaults to
* 'addHandler'. The called method receives two arguments:
* - The handler instance as first argument.
* - Optionally the handler's priority as second argument, if the method
* accepts a second parameter and its name is "priority". In any case,
* all handlers registered at compile time are sorted already.
* 'addHandler'. The called method receives at least one argument,
* optionally more:
* - The handler instance must be the first method parameter, and it must
* have a type declaration.
* - If the method has a parameter named $id, in any position, it will
* receive the value of service ID when called.
* - If the method has a parameter named $priority, in any position, it
* will receive the value of the tag's 'priority' attribute.
* - Any other method parameters whose names match the name of an
* attribute of the tag will receive the value of that tag attribute.The
* order of the method parameters and the order of the service tag
* attributes do not need to match.
*
* Example (YAML):
* @code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment