Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
factory.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Oauth
;
4
5
use Bitrix\Calendar\Core\Base\SingletonTrait;
6
use
Bitrix\Main\LoaderException
;
7
8
class
Factory
9
{
10
use SingletonTrait;
11
15
public
function
getByName
($name):
Base
|null
16
{
17
return
match ($name)
18
{
19
'google'
=>
Google::getInstance
(),
20
'office365'
=>
Office365::getInstance
(),
21
default
=>
null
,
22
};
23
}
24
}
Bitrix\Calendar\Core\Oauth\Base
Definition
base.php:11
Bitrix\Calendar\Core\Oauth\Base\getInstance
static getInstance()
Definition
base.php:26
Bitrix\Calendar\Core\Oauth\Factory
Definition
factory.php:9
Bitrix\Calendar\Core\Oauth\Factory\getByName
getByName($name)
Definition
factory.php:15
Bitrix\Main\LoaderException
Definition
loader.php:582
Bitrix\Calendar\Core\Oauth
Definition
base.php:3
modules
calendar
lib
core
oauth
factory.php
Создано системой
1.10.0