Skip to content

IdentitySourceInterface ​

Rasuvaeff\Yii3McpRbacBridge\IdentitySourceInterface

Interface — Rasuvaeff\Yii3McpRbacBridge — Source

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