final class ContainerResolutionState implements ReplicableContext

internal  
 

Mutable state for one container resolution chain.

The state is cloned when coroutine context is copied, so parent and child coroutines never share mutable stacks. Entries unwind through finally, while allocated capacity lives until the coroutine ends or non-coroutine context is explicitly flushed. Resolution depth is bounded by the Container; build-stack growth from call() remains bounded by the PHP call stack.

Properties

int $depth

The current nested resolution depth.

list<int|string> $buildStack

The class names and closure object IDs currently being built.

list<string> $resolvingStack

The abstracts currently being resolved.

list<array<array-key, mixed>> $parameterOverrides

The parameter overrides for nested builds.

Methods

replicate()

Copy the complete resolution state into an independent object.

Details

at line 55
ReplicableContext replicate()

Copy the complete resolution state into an independent object.

Return Value

ReplicableContext