Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use callable resolver in batch API to allow callbacks in service notation #5880

Open
escobar-ui opened this issue Feb 26, 2024 · 0 comments
Open

Comments

@escobar-ui
Copy link

Problem/Motivation
The motivation is the same as this issue for the Drupal Core batch API: https://www.drupal.org/project/drupal/issues/3401873.
The batch API takes callbacks, but these have to be functions or static methods on classes.

If we use the callable resolver, we can also allow callbacks in service notation, that is, in the form my_service:methodName.

Proposed resolution
Changes similar to those made to core/includes/batch.inc in this merge request could be implemented in function _drush_batch_worker() on batch.inc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant