mirror of
https://github.com/flarum/core.git
synced 2025-10-12 23:44:27 +02:00
In the future we may have multiple Formatters, so by moving the config callback to its own instance method we can leave the constructor available to specify which formatter (like Assets and Routes). This format also allows for other methods to be added. Additionally, this adds logic to automatically flush the Formatter cache whenever the extension is enabled or disabled.