Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
inlineaction.php
1<?php
2
3namespace Bitrix\Main\Engine;
4
5
6final class InlineAction extends Action
7{
11 protected $methodName;
12
20 public function __construct($name, Controller $controller, $config = array())
21 {
22 $this->methodName = $controller->generateActionMethodName($name);
23 parent::__construct($name, $controller, $config);
24 }
25
26 protected function buildBinder()
27 {
28 if ($this->binder === null)
29 {
30 $controller = $this->getController();
31 $this->binder = AutoWire\ControllerBinder::buildForMethod($controller, $this->methodName)
32 ->setController($controller)
33 ->setSourcesParametersToMap($controller->getSourceParametersList())
34 ->setAutoWiredParameters(
35 array_filter(array_merge(
36 [$controller->getPrimaryAutoWiredParameter()],
37 $controller->getAutoWiredParameters()
38 ))
39 )
40 ;
41 }
42
43 return $this;
44 }
45}
__construct($name, Controller $controller, $config=array())