Trait
Methods
public final bind(string $nameOrFqcn, ?mixed $valueOrRef) : static
 

Sets bindings.

Bindings map $named or FQCN arguments to values that should be injected in the matching parameters (of the constructor, of methods called and of controller actions).

  • param string $nameOrFqcn A parameter name with its "$" prefix, or an FQCN
  • param mixed $valueOrRef The value or reference to bind
  • return $this
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration