class ConsoleApplicationResolver

internal  
 

Traits

Properties

protected Container|null $container from  HasContainer

Methods

void
setContainer(Container $container)

Set the container used for resolution.

getContainer()

Return the current container.

mixed
resolve(string $abstract)

Resolve the given type from the container.

__construct(ReflectionProvider $reflectionProvider, RuntimeInputs $runtimeInputs)

Create a new resolver instance.

array
findCommands(ClassReflection $classReflection)

Find the registered commands that are instances of the given class.

array
findCommandsForType(Type $type, Scope $scope)

Find the registered commands the given receiver type can be.

Details

in HasContainer at line 19
void setContainer(Container $container)

Set the container used for resolution.

Parameters

Container $container

Return Value

void

in HasContainer at line 27
Container getContainer()

Return the current container.

Return Value

Container

in HasContainer at line 35
mixed resolve(string $abstract)

Resolve the given type from the container.

Parameters

string $abstract

Return Value

mixed

at line 53
__construct(ReflectionProvider $reflectionProvider, RuntimeInputs $runtimeInputs)

Create a new resolver instance.

Parameters

ReflectionProvider $reflectionProvider
RuntimeInputs $runtimeInputs

at line 64
array findCommands(ClassReflection $classReflection)

Find the registered commands that are instances of the given class.

Parameters

ClassReflection $classReflection

Return Value

array

keyed by object ID

at line 104
array findCommandsForType(Type $type, Scope $scope)

Find the registered commands the given receiver type can be.

Parameters

Type $type
Scope $scope

Return Value

array

keyed by object ID