AsMessageHandler.php 718 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Messenger\Attribute;
  11. /**
  12. * Service tag to autoconfigure message handlers.
  13. *
  14. * @author Alireza Mirsepassi <alirezamirsepassi@gmail.com>
  15. */
  16. #[\Attribute(\Attribute::TARGET_CLASS)]
  17. class AsMessageHandler
  18. {
  19. public function __construct(
  20. public ?string $bus = null,
  21. public ?string $fromTransport = null,
  22. public ?string $handles = null,
  23. public ?string $method = null,
  24. public int $priority = 0,
  25. ) {
  26. }
  27. }