class SafeCaller

Methods

__construct(Container $container)

No description

mixed
call(Closure $closure, Closure|null $default = null)

Execute the given closure, catching any exceptions and reporting them.

Details

at line 14
__construct(Container $container)

No description

Parameters

Container $container

at line 28
mixed call(Closure $closure, Closure|null $default = null)

Execute the given closure, catching any exceptions and reporting them.

Parameters

Closure $closure
Closure|null $default

Return Value

mixed