Documentation

CallableResolver
in package

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

Methods

resolve()

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()

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()

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

        
On this page

Search results