class CallbackResolver

Constants

SERVICE_PATTERN

Methods

__construct(Container $app)

No description

bool
isValid(string $name)

Returns true if the string is a valid service method representation.

callable
convertCallback(string $name)

Returns a callable given its string representation.

string|callable
resolveCallback(string $name)

Returns a callable given its string representation if it is a valid service method.

Details

at line 22
__construct(Container $app)

Parameters

Container $app

at line 34
bool isValid(string $name)

Returns true if the string is a valid service method representation.

Parameters

string $name

Return Value

bool

at line 48
callable convertCallback(string $name)

Returns a callable given its string representation.

Parameters

string $name

Return Value

callable

Exceptions

InvalidArgumentException In case the method does not exist.

at line 74
string|callable resolveCallback(string $name)

Returns a callable given its string representation if it is a valid service method.

Parameters

string $name

Return Value

string|callable A callable value or the string passed in

Exceptions

InvalidArgumentException In case the method does not exist.