BreadBoard icon indicating copy to clipboard operation
BreadBoard copied to clipboard

The "Null" lifecycle feels like a hack

Open dakkar opened this issue 9 years ago • 1 comments

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.

dakkar avatar Mar 30 '15 16:03 dakkar

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.

stevan avatar Mar 31 '15 14:03 stevan