BreadBoard
BreadBoard copied to clipboard
The "Null" lifecycle feels like a hack
If your service has a lifecycle applied, you can remove it by setting $service->lifecycle('Null')
. This feels wrong (also, the way we remove a role by reblessing into the first superclass is probably fragile, but that's for another day).
Should I write a (essentially empty) Bread::Board::Lifecycle::Prototype
(to use the name from the manual) and document it? That way we can remove the special-cased name.
To be honest, un-applying a role was not probably not a feature in Moose at the time I wrote this. As for your approach, I have no real objection to it beyond that it might break back-compat and that should be taken into account.