1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
factory.php
См. документацию.
1<?php
2
3namespace Bitrix\Seo\Checkout\Services;
4
5use Bitrix\Main;
6use Bitrix\Seo;
7
13{
19 public static function createService(string $type)
20 {
21 $oauthService = null;
22
24 {
25 $oauthService = new AccountYandex();
26 }
27
29 {
30 $oauthService = new AccountYookassa();
31 }
32
34 {
35 $oauthService = new AccountTBankBusiness();
36 }
37
38 if ($oauthService)
39 {
40 $oauthService->setService(Seo\Checkout\Service::getInstance());
41 return $oauthService;
42 }
43
44 throw new Main\SystemException("Service with type: \"{$type}\" not found");
45 }
46}
$type
Определения options.php:106
static getInstance()
Определения service.php:21
static createService(string $type)
Определения factory.php:19