Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
closureaction.php
1
<?php
2
3
namespace
Bitrix\Main\Engine
;
4
5
6
final
class
ClosureAction
extends
Action
7
{
11
protected
$callable
;
12
21
public
function
__construct
(
$name
,
Controller
$controller
,
$callable
,
$config
= array())
22
{
23
$this->callable =
$callable
;
24
parent::__construct(
$name
,
$controller
,
$config
);
25
}
26
27
protected
function
buildBinder
()
28
{
29
if
($this->binder ===
null
)
30
{
31
$controller
= $this->
getController
();
32
$this->binder = AutoWire\ControllerBinder::buildForFunction($this->callable)
33
->setController(
$controller
)
34
->setSourcesParametersToMap(
$controller
->getSourceParametersList())
35
->setAutoWiredParameters(
36
array_filter(array_merge(
37
[
$controller
->getPrimaryAutoWiredParameter()],
38
$controller
->getAutoWiredParameters()
39
))
40
)
41
;
42
}
43
44
return
$this;
45
}
46
}
Bitrix\Main\Engine\Action
Definition
action.php:17
Bitrix\Main\Engine\Action\$controller
$controller
Definition
action.php:23
Bitrix\Main\Engine\Action\$config
$config
Definition
action.php:25
Bitrix\Main\Engine\Action\getController
getController()
Definition
action.php:138
Bitrix\Main\Engine\Action\$name
$name
Definition
action.php:27
Bitrix\Main\Engine\ClosureAction
Definition
closureaction.php:7
Bitrix\Main\Engine\ClosureAction\__construct
__construct($name, Controller $controller, $callable, $config=array())
Definition
closureaction.php:21
Bitrix\Main\Engine\ClosureAction\buildBinder
buildBinder()
Definition
closureaction.php:27
Bitrix\Main\Engine\ClosureAction\$callable
$callable
Definition
closureaction.php:11
Bitrix\Main\Engine
Definition
action.php:3
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
modules
main
lib
engine
closureaction.php
Создано системой
1.10.0