Menu

## CallableResolver
in package

CallableResolver.php : 15

Resolves a callable from a container.

### Table of Contents

#### Properties

$container : ContainerInterface

#### Methods

__construct() : mixed
resolve() : callable
  Resolve the given callable into a real PHP callable.
isStaticCallToNonStaticMethod() : bool
  Check if the callable represents a static call to a non-static method.
resolveFromContainer() : callable|mixed

### Properties

#### $container

CallableResolver.php : 18
`private ContainerInterface $container`

### Methods

#### __construct()

CallableResolver.php : 20
`public __construct(ContainerInterface $container) : mixed`

##### Parameters

$container : ContainerInterface

#### resolve()

CallableResolver.php : 32

Resolve the given callable into a real PHP callable.

`public resolve(callable|string|array<string|int, mixed> $callable) : callable`

##### Parameters

$callable : callable|string|array<string|int, mixed>

##### Tags

throws
  NotCallableException|ReflectionException

##### Return values

callable —

Real PHP callable.

#### isStaticCallToNonStaticMethod()

CallableResolver.php : 108

Check if the callable represents a static call to a non-static method.

`private isStaticCallToNonStaticMethod(mixed $callable) : bool`

##### Parameters

$callable : mixed

##### Tags

throws
  ReflectionException

##### Return values

bool

#### resolveFromContainer()

CallableResolver.php : 52
`private resolveFromContainer(callable|string|array<string|int, mixed> $callable) : callable|mixed`

##### Parameters

$callable : callable|string|array<string|int, mixed>

##### Tags

throws
  NotCallableException|ReflectionException

##### Return values

callable|mixed

## Search results