Menu

## Invoker
in package
implements InvokerInterface

Invoker.php : 19

Invoke a callable.

### Table of Contents

#### Interfaces

InvokerInterface
  Invoke a callable.

#### Properties

$callableResolver : CallableResolver|null
$container : ContainerInterface|null
$parameterResolver : ParameterResolver

#### Methods

__construct() : mixed
call() : mixed
  Call the given function using the given parameters.
getCallableResolver() : CallableResolver|null
getContainer() : ContainerInterface|null
getParameterResolver() : ParameterResolver
createParameterResolver() : ParameterResolver
  Create the default parameter resolver.

### Properties

#### $callableResolver

Invoker.php : 22
`private CallableResolver|null $callableResolver`

#### $container

Invoker.php : 28
`private ContainerInterface|null $container`

#### $parameterResolver

Invoker.php : 25
`private ParameterResolver $parameterResolver`

### Methods

#### __construct()

Invoker.php : 30
`public __construct([ParameterResolver|null $parameterResolver = null ][, ContainerInterface|null $container = null ]) : mixed`

##### Parameters

$parameterResolver : ParameterResolver|null = null
$container : ContainerInterface|null = null

#### call()

Invoker.php : 43

Call the given function using the given parameters.

`public call(mixed $callable[, array<string|int, mixed> $parameters = [] ]) : mixed`

##### Parameters

$callable : mixed

  Function to call.

$parameters : array<string|int, mixed> = []

  Parameters to use.

##### Return values

mixed —

Result of the function.

#### getCallableResolver()

Invoker.php : 105
`public getCallableResolver() : CallableResolver|null`

##### Return values

CallableResolver|null —

Returns null if no container was given in the constructor.

#### getContainer()

Invoker.php : 97
`public getContainer() : ContainerInterface|null`

##### Return values

ContainerInterface|null

#### getParameterResolver()

Invoker.php : 92
`public getParameterResolver() : ParameterResolver`

##### Return values

ParameterResolver —

By default it's a ResolverChain

#### createParameterResolver()

Invoker.php : 80

Create the default parameter resolver.

`private createParameterResolver() : ParameterResolver`

##### Return values

ParameterResolver

## Search results