mirror of
https://github.com/flarum/framework.git
synced 2025-02-24 19:19:56 +08:00

It can be very annoying if we want to use something like boolval, but have to define an entire anonymous function to pass it in. This PR adds support for tpassing it in directly as a string, like is posible with User::registerPreference.