CallableResolver
in package
Resolves a callable from a container.
Table of Contents
Properties
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
private
ContainerInterface
$container
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
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
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
Return values
boolresolveFromContainer()
private
resolveFromContainer(callable|string|array<string|int, mixed> $callable) : callable|mixed
Parameters
- $callable : callable|string|array<string|int, mixed>