ContextualBindingBuilder
class ContextualBindingBuilder implements ContextualBindingBuilder (View source)
Свойства
| protected Container | $container | Базовый экземпляр контейнера. | |
| protected string|array | $concrete | Конкретный экземпляр. | |
| protected string | $needs | Абстрактная цель. |
Методы
| void | __construct(Container $container, string|array $concrete) Создать новый билдер контекстуальных связей. | |
| $this | needs(string $abstract) Определить абстрактную цель, зависящую от контекста. | |
| void | give(Closure|string $implementation) Определить реализацию для контекстуальной связи. |
Детали
void __construct(Container $container, string|array $concrete)
Создать новый билдер контекстуальных связей.
$this needs(string $abstract)
Определить абстрактную цель, зависящую от контекста.
void give(Closure|string $implementation)
Определить реализацию для контекстуальной связи.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/Container/ContextualBindingBuilder.html