MagicFilterAsFilter.php
Table of Contents
Classes
- MagicFilterAsFilter
- Bridge that turns a `MagicFilter` chain into a dispatcher-consumable `Filter`. Mirrors the upstream `MagicFilter` → `Filter` adapter behaviour: aiogram passes a `MagicFilter` instance straight where a `Filter` is expected and the dispatcher's `_check` wraps it via `MagicFilter.resolve`. The PHP `Filter` abstract is more rigid (`__invoke(object, array)`); this bridge implements that contract.