Your IP : 3.144.48.13
<?php
namespace Bitrix\Main\Engine;
final class InlineAction extends Action
{
/**
* @var string
*/
protected $methodName;
/**
* InlineAction constructor.
*
* @param string $name
* @param Controller $controller
* @param array $config
*/
public function __construct($name, Controller $controller, $config = array())
{
$this->methodName = $controller->generateActionMethodName($name);
parent::__construct($name, $controller, $config);
}
protected function buildBinder()
{
if ($this->binder === null)
{
$controller = $this->getController();
$this->binder = AutoWire\ControllerBinder::buildForMethod($controller, $this->methodName)
->setController($controller)
->setSourcesParametersToMap($controller->getSourceParametersList())
->setAutoWiredParameters(
array_filter(array_merge(
[$controller->getPrimaryAutoWiredParameter()],
$controller->getAutoWiredParameters()
))
)
;
}
return $this;
}
}