mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Simple forum software for building great communities.
e24b208d46
These are completely distinct functionalities, toggled through the system-wide debug flag. By moving the selection of the middleware to use to the place where the middleware pipe is built, we make the middleware itself be unaware of these flags. The two classes are more focused on what they are doing, with the constructor dependencies clearly representing their requirements. In addition, this means we can just use the HandleErrorsWithWhoops middleware in the installer, which means we do not need to worry about how to inject a SettingsRepositoryInterface implementation when flarum is not yet set up. |
||
---|---|---|
framework/core |