phpbotgram

SceneManagerInterface

Controls scene transitions on behalf of `SceneWizard`.

Provides the forward declaration used by SceneWizard; the concrete ScenesManager (Task 5.10) implements this interface.

Mirrors the relevant surface of ScenesManager (aiogram/fsm/scene.py:567-655).

Table of Contents

Methods

enter()  : void
Transition to the given scene (or clear FSM state when `null`).
history()  : HistoryManagerInterface
Access the history manager for this scene session.

Methods

enter()

Transition to the given scene (or clear FSM state when `null`).

public enter(null|Scene>|State|string $scene[, bool $checkActive = true ], mixed ...$kwargs) : void
Parameters
$scene : null|Scene>|State|string

Target scene class name, a State instance, a bare state string, or null to clear FSM state entirely.

$checkActive : bool = true

When false the manager skips the "is the scene already active?" guard. Used internally by SceneWizard for chained transitions.

$kwargs : mixed

Additional context forwarded to the scene's lifecycle methods.

On this page

Search results