Skip to content

IdentitySourceInterface

Rasuvaeff\Yii3McpRbacBridge\IdentitySourceInterface

InterfaceRasuvaeff\Yii3McpRbacBridgeSource

Where the current user id comes from. In an HTTP deployment the shipped CurrentUserIdentitySource adapter reads yiisoft/user's CurrentUser (populated by the authentication middleware — under FPM one HTTP request is one tool call, so "current" is exact). For stdio or custom setups implement this with an env-/config-driven source.

Methods

getId()

php
getId(): ?string