trait BindTrait
| $this | bind(string $nameOrFqcn, mixed $valueOrRef) Sets bindings. |
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).
| string | $nameOrFqcn | A parameter name with its "$" prefix, or a FQCN |
| mixed | $valueOrRef | The value or reference to bind |
| $this |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/BindTrait.html