SceneManagerInterface
in
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
Stateinstance, a bare state string, ornullto clear FSM state entirely. - $checkActive : bool = true
-
When
falsethe manager skips the "is the scene already active?" guard. Used internally bySceneWizardfor chained transitions. - $kwargs : mixed
-
Additional context forwarded to the scene's lifecycle methods.
history()
Access the history manager for this scene session.
public
history() : HistoryManagerInterface