ContextualBindingBuilder (Container)

ContextualBindingBuilder

class ContextualBindingBuilder implements ContextualBindingBuilder (View source)

Methods

void __construct(Container $container, string $concrete)

Create a new contextual binding builder.

$this needs(string $abstract)

Define the abstract target that depends on the context.

void give(Closure|string $implementation)

Define the implementation for the contextual binding.

Details

void __construct(Container $container, string $concrete)

Create a new contextual binding builder.

Parameters

Container $container
string $concrete

Return Value

void

$this needs(string $abstract)

Define the abstract target that depends on the context.

Parameters

string $abstract

Return Value

$this

void give(Closure|string $implementation)

Define the implementation for the contextual binding.

Parameters

Closure|string $implementation

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Container/ContextualBindingBuilder.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部