ControllerBinder extends Binder
FinalYes
Table of Contents
Constants
- STATUS_FOUND = true
- STATUS_NOT_FOUND = false
Methods
- __construct() : mixed
- appendAutoWiredParameter() : mixed
- appendSourcesParametersToMap() : mixed
- buildForFunction() : mixed
- buildForMethod() : mixed
- getArgs() : array<string|int, mixed>
- Returns list of method params which possible use in call_user_func_array().
- getAutoWiredParameters() : array<string|int, Parameter>
- getConfiguration() : array<string|int, mixed>
- getController() : Controller
- getInstance() : mixed
- getMethod() : mixed
- getMethodParams() : array<string|int, mixed>
- Returns list of method params.
- getSourcesParametersToMap() : mixed
- invoke() : mixed
- Invokes method with binded parameters.
- registerGlobalAutoWiredParameter() : void
- Register globally auto wired parameter. The method was added in backwards compatibility reason.
- setAutoWiredParameters() : $this
- setConfiguration() : Binder
- setController() : ControllerBinder
- setMethodParams() : $this
- Sets list of method params.
- setSourcesParametersToMap() : mixed
- unRegisterGlobalAutoWiredParameter() : void
Constants
STATUS_FOUND
public
mixed
STATUS_FOUND
= true
STATUS_NOT_FOUND
public
mixed
STATUS_NOT_FOUND
= false
Methods
__construct()
public
__construct(mixed $instance, mixed $method[, mixed $configuration = [] ]) : mixed
Parameters
- $instance : mixed
- $method : mixed
- $configuration : mixed = []
appendAutoWiredParameter()
public
appendAutoWiredParameter(Parameter $parameter) : mixed
Parameters
- $parameter : Parameter
appendSourcesParametersToMap()
public
appendSourcesParametersToMap(array<string|int, mixed> $parameter) : mixed
Parameters
- $parameter : array<string|int, mixed>
buildForFunction()
public
final static buildForFunction(mixed $callable[, mixed $configuration = [] ]) : mixed
Parameters
- $callable : mixed
- $configuration : mixed = []
buildForMethod()
public
final static buildForMethod(mixed $instance, mixed $method[, mixed $configuration = [] ]) : mixed
Parameters
- $instance : mixed
- $method : mixed
- $configuration : mixed = []
getArgs()
Returns list of method params which possible use in call_user_func_array().
public
final getArgs() : array<string|int, mixed>
Return values
array<string|int, mixed>getAutoWiredParameters()
public
getAutoWiredParameters() : array<string|int, Parameter>
Return values
array<string|int, Parameter>getConfiguration()
public
getConfiguration() : array<string|int, mixed>
Return values
array<string|int, mixed>getController()
public
getController() : Controller
Return values
ControllergetInstance()
public
getInstance() : mixed
getMethod()
public
getMethod() : mixed
getMethodParams()
Returns list of method params.
public
final getMethodParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getSourcesParametersToMap()
public
getSourcesParametersToMap() : mixed
invoke()
Invokes method with binded parameters.
public
final invoke() : mixed
return @mixed
registerGlobalAutoWiredParameter()
Register globally auto wired parameter. The method was added in backwards compatibility reason.
public
static registerGlobalAutoWiredParameter(Parameter $parameter) : void
Parameters
- $parameter : Parameter
setAutoWiredParameters()
public
setAutoWiredParameters(array<string|int, Parameter> $parameters) : $this
Parameters
- $parameters : array<string|int, Parameter>
Return values
$thissetConfiguration()
public
setConfiguration(array<string|int, mixed> $configuration) : Binder
Parameters
- $configuration : array<string|int, mixed>
Return values
BindersetController()
public
setController(Controller $controller) : ControllerBinder
Parameters
- $controller : Controller
Return values
ControllerBindersetMethodParams()
Sets list of method params.
public
final setMethodParams(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
-
List of parameters.
Return values
$thissetSourcesParametersToMap()
public
setSourcesParametersToMap(array<string|int, mixed> $parameters) : mixed
Parameters
- $parameters : array<string|int, mixed>
unRegisterGlobalAutoWiredParameter()
public
static unRegisterGlobalAutoWiredParameter(Parameter $parameter) : void
Parameters
- $parameter : Parameter