Server IP : 85.193.89.191 / Your IP : 3.145.9.186 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/modules/seo/lib/checkout/ |
Upload File : |
<?php namespace Bitrix\Seo\Checkout; /** * Class Service * @package Bitrix\Seo\Checkout */ class Service implements IService { const GROUP = 'checkout'; const TYPE_YANDEX = 'yandex'; const TYPE_YOOKASSA = 'yookassa'; /** * Get instance. * * @return static */ public static function getInstance() { static $instance = null; if ($instance === null) { $instance = new static(); } return $instance; } /** * @param string $type * @return string */ public static function getEngineCode($type) { return static::GROUP.'.'.$type; } /** * @return array */ public static function getTypes() { return [ static::TYPE_YANDEX, static::TYPE_YOOKASSA, ]; } /** * Get auth adapter. * * @param string $type Type. * @return AuthAdapter * @throws \Bitrix\Main\SystemException */ public static function getAuthAdapter($type) { return AuthAdapter::create($type)->setService(static::getInstance()); } }