class Bind (View source)

Properties

class-string $concrete

The concrete class to bind to.

$environments

The environments the binding should apply for.

Methods

__construct(string $concrete, string|array $environments = ['*'])

Create a new attribute instance.

Details

__construct(string $concrete, string|array $environments = ['*'])

Create a new attribute instance.

Parameters

string $concrete
string|array $environments

Exceptions

InvalidArgumentException