• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/consent/consent.php
  • Класс: Bitrix\Sender\Consent\Consent
  • Вызов: Consent::getTransport
static function getTransport(?string $code): Transport\Adapter
{
	static $transports = [];
	if(!isset($transports[$code]))
	{
		$transports[$code] = Transport\Adapter::create($code);
	}
	return $transports[$code];
}