Documentation

RuntimeInterface

Enables decoupling applications from global state.

Tags
author

Nicolas Grekas p@tchwork.com

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
ResolverInterface

getRunner()

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
Return values
RunnerInterface

        
On this page

Search results