Skip to content

Commit 5cc5396

Browse files
committedJan 2, 2024
minor #51974 [Console][EventDispatcher][Security][Serializer][Workflow] Add PHPDoc to attribute classes and properties (alexandre-daubois)
This PR was merged into the 7.1 branch. Discussion ---------- [Console][EventDispatcher][Security][Serializer][Workflow] Add PHPDoc to attribute classes and properties | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Part of symfony/symfony#51920 | License | MIT One more round. :information_source: A first review of this kind is being done [here](symfony/symfony#51971), I'll adjust this PR accordingly once done 🙂 Commits ------- 8a2ac5a6d2 [Console][EventDispatcher][Security][Serializer][Workflow] Add PHPDoc to attribute classes and properties
2 parents 309f82a + 9b1de7b commit 5cc5396

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎Attribute/AsEventListener.php

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
2020
class AsEventListener
2121
{
22+
/**
23+
* @param string|null $event The event name to listen to
24+
* @param string|null $method The method to run when the listened event is triggered
25+
* @param int $priority The priority of this listener if several are declared for the same event
26+
* @param string|null $dispatcher The service id of the event dispatcher to listen to
27+
*/
2228
public function __construct(
2329
public ?string $event = null,
2430
public ?string $method = null,

0 commit comments

Comments
 (0)
Please sign in to comment.