RuntimeInterface
in
Enables decoupling applications from global state.
Tags
Table of Contents
Methods
- getResolver() : ResolverInterface
- Returns a resolver that should compute the arguments of a callable.
- getRunner() : RunnerInterface
- Returns a callable that knows how to run the passed object and that returns its exit status as int.
Methods
getResolver()
Returns a resolver that should compute the arguments of a callable.
public
getResolver(callable $callable[, ReflectionFunction $reflector = null ]) : ResolverInterface
The callable itself should return an object that represents the application to pass to the getRunner() method.
Parameters
- $callable : callable
- $reflector : ReflectionFunction = null
Return values
ResolverInterfacegetRunner()
Returns a callable that knows how to run the passed object and that returns its exit status as int.
public
getRunner(object|null $application) : RunnerInterface
The passed object is typically created by calling ResolverInterface::resolve().
Parameters
- $application : object|null