UserFrosting icon indicating copy to clipboard operation
UserFrosting copied to clipboard

Bypass PHP class inheritance when adding command to `bake`

Open lcharette opened this issue 5 years ago • 1 comments

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.

lcharette avatar Jul 28 '19 02:07 lcharette

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

lcharette avatar Jan 10 '22 03:01 lcharette

Release in 5.0.0

lcharette avatar Nov 25 '23 01:11 lcharette