Nexus API Reference

ActorRegistry
in package

FinalYes
Tags
psalm-api

Mutable boot-time table of actor declarations. Frozen at HttpApp::compile() into a list of ActorRegistrationEntry that feed ResolvedActorTable.

Table of Contents

Methods

freeze()  : array<int, ActorRegistrationEntry>
has()  : bool
register()  : ActorRegistration
update()  : void
Called by ActorRegistration on every mutation. The registration mutates itself in place; the bundle in $entries holds the same instance, so the registry sees fresh values at freeze() time without any extra bookkeeping here. The parameter stays on the signature so future bookkeeping (e.g.

Methods

has()

public has(string $name) : bool
Parameters
$name : string
Return values
bool

update()

Called by ActorRegistration on every mutation. The registration mutates itself in place; the bundle in $entries holds the same instance, so the registry sees fresh values at freeze() time without any extra bookkeeping here. The parameter stays on the signature so future bookkeeping (e.g.

public update(ActorRegistration $registration) : void

change-tracking, freeze-after-first-compile guards) can land as a non- breaking change.

Parameters
$registration : ActorRegistration
Tags
psalm-suppress

UnusedParam Part of the public mutation contract.


        
On this page

Search results