/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Messenger/Attribute/AsMessage.php
39 строк
1 KB
Yonel Ceruto
Add support for serialized type name aliases in #[AsMessage] attribute
27 июл 2026, 17:05
27 июл 2026, 17:05
418e005
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Messenger\Attribute; /** * Attribute for configuring message routing. * * @author Pierre Rineau pierre.rineau@processus.org> */ #[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)] class AsMessage { public function __construct( /** * Name of the transports to which the message should be routed. */ public string|array|null $transport = null, /** * The serialized type to use when sending or receiving the message. */ public ?string $serializedTypeName = null, /** * Alternate serialized type names that also decode to this message. * * @var string[] */ public array $serializedTypeNameAliases = [], ) { } }