class Bind

Properties

class-string $concrete

The concrete class to bind to.

array<int, string> $environments

The environments the binding should apply for.

Methods

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

Create a new attribute instance.

Details

at line 37
__construct(string $concrete, string|array|UnitEnum $environments = ['*'])

Create a new attribute instance.

Parameters

string $concrete
string|array|UnitEnum $environments

Exceptions

InvalidArgumentException