You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we want to do something until a feature is enabled, we have to do something like:
$swivel
->forFeatutre('Shiny')
->addBehavior('new', function() {})
->defaultBehavior(function() {
// Do normal stuff until Shiny.new is enabled
})
->execute();
Proposal, add a new manager type that executes all behaviors until the feature is enabled:
$swivel
->untilFeature('Shiny')
->addBehavior('new', function() {
// Do normal stuff until Shiny.new is enabled
})
->execute();
Invoke form would be:
$swivel->invokeUntil('Shiny.new', function() {
// Do normal stuff until Shiny.new is enabled
});
The text was updated successfully, but these errors were encountered:
When we want to do something until a feature is enabled, we have to do something like:
Proposal, add a new manager type that executes all behaviors until the feature is enabled:
Invoke form would be:
The text was updated successfully, but these errors were encountered: