Skip to content

Commit

Permalink
minor #51974 [Console][EventDispatcher][Security][Serializer][Workflo…
Browse files Browse the repository at this point in the history
…w] 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
  • Loading branch information
nicolas-grekas committed Jan 2, 2024
2 parents 309f82a + 9b1de7b commit 5cc5396
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Attribute/AsEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
class AsEventListener
{
/**
* @param string|null $event The event name to listen to
* @param string|null $method The method to run when the listened event is triggered
* @param int $priority The priority of this listener if several are declared for the same event
* @param string|null $dispatcher The service id of the event dispatcher to listen to
*/
public function __construct(
public ?string $event = null,
public ?string $method = null,
Expand Down

0 comments on commit 5cc5396

Please sign in to comment.