1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
Определения
base.php:11
Bitrix\Calendar\Core\Oauth\Base\getInstance
static getInstance()
Определения
base.php:26
Bitrix\Calendar\Core\Oauth\Factory
Определения
factory.php:9
Bitrix\Calendar\Core\Oauth\Factory\getByName
getByName($name)
Определения
factory.php:15
$name
$name
Определения
menu_edit.php:35
bitrix
modules
calendar
lib
core
oauth
factory.php
Создано системой
1.14.0