Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
application.php
1
<?php
2
namespace
Bitrix\Rest
;
3
4
5
use
Bitrix\Main\Event
;
6
7
class
Application
8
{
9
protected
static
$initialized
=
false
;
10
14
protected
static
$authProvider
=
null
;
15
19
public
static
function
getAuthProvider
()
20
{
21
static::initialize();
22
23
if
(static::$authProvider ===
null
)
24
{
25
static::$authProvider = static::getDefaultAuthProvider();
26
}
27
28
return
static::$authProvider;
29
}
30
34
public
static
function
setAuthProvider
(
AuthProviderInterface
$authProvider)
35
{
36
static::$authProvider = $authProvider;
37
}
38
42
protected
static
function
getDefaultAuthProvider
()
43
{
44
return
OAuth\Provider::instance();
45
}
46
47
protected
static
function
initialize
()
48
{
49
if
(!static::$initialized)
50
{
51
static::$initialized =
true
;
52
53
$event =
new
Event
(
'rest'
,
'onApplicationManagerInitialize'
);
54
$event->send();
55
}
56
}
57
}
Bitrix\Main\Application
Definition
application.php:28
Bitrix\Main\Application\$initialized
bool $initialized
Definition
application.php:36
Bitrix\Main\Event
Definition
event.php:5
Bitrix\Rest\Application\setAuthProvider
static setAuthProvider(AuthProviderInterface $authProvider)
Definition
application.php:34
Bitrix\Rest\Application\initialize
static initialize()
Definition
application.php:47
Bitrix\Rest\Application\getAuthProvider
static getAuthProvider()
Definition
application.php:19
Bitrix\Rest\Application\getDefaultAuthProvider
static getDefaultAuthProvider()
Definition
application.php:42
Bitrix\Rest\Application\$authProvider
static $authProvider
Definition
application.php:14
Bitrix\Rest\AuthProviderInterface
Definition
authproviderinterface.php:13
Bitrix\Rest
Definition
accessexception.php:2
modules
rest
lib
application.php
Создано системой
1.10.0