Nexus API Reference

ContainerFallbackResolver
in package
implements ParamResolver

Read onlyYes
FinalYes
Tags
psalm-api

Last-resort constructor fallback: when no other resolver matches and the parameter has a class type-hint bound in the container, resolve via container->get($type). Otherwise fall back to the parameter's default value (if any), then to null (if the type is nullable).

Only active in constructor scopes (HttpBoot, WsConnection). HttpRequest fall-through is a misuse — the existing HandlerResolver throws there too.

Table of Contents

Interfaces

ParamResolver

Methods

compile()  : ParamMetadata|null
resolve()  : mixed

Methods


        
On this page

Search results