if (false ===
$scheduleName =
parse_url($dsn, \PHP_URL_HOST
)) { throw new InvalidArgumentException(sprintf('The given Schedule DSN "%s" is invalid.',
$dsn));
} if (!
$this->scheduleProviders->
has($scheduleName)) { throw new InvalidArgumentException(sprintf('The schedule "%s" is not found.',
$scheduleName));
} /** @var ScheduleProviderInterface $scheduleProvider */
$scheduleProvider =
$this->scheduleProviders->
get($scheduleName);
return new SchedulerTransport(new MessageGenerator($scheduleProvider,
$scheduleName,
$this->clock
));
} public function supports(string
$dsn, array
$options): bool
{ return str_starts_with($dsn, 'schedule://'
);
}}