#[Package('core')]
class DefaultTransportCompilerPass implements CompilerPassInterface
{ public function process(ContainerBuilder
$container): void
{ // the default transport is defined by the parameter `messenger.default_transport_name`
$defaultName =
$container->
getParameter('messenger.default_transport_name'
);
if (!\
is_string($defaultName)) { throw new \
TypeError('Parameter `messenger.default_transport_name` should be a string.'
);
} $id = 'messenger.transport.' .
$defaultName;
$container->
addAliases(['messenger.default_transport' =>
$id]);
}}