UserFrosting
UserFrosting copied to clipboard
Bypass PHP class inheritance when adding command to `bake`
PHP class inheritance means a custom sprinkle that wants to add custom command to the main bake command need to chain the right class extension. For example, account already extend core, so your sprinkle need to extend account. This can introduce a problem with community sprinkle. A new method (register ?) might be necessary here.
Events are now used in 5.0 to customize the bake command. Same will be done for setup and debug command. See https://github.com/userfrosting/sprinkle-core/commit/b1d57e68c1564a8944defe2205aab20054eac7c5
Release in 5.0.0