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

The database driver module's services are not available during installation #5846

Closed
mondrake opened this issue Dec 30, 2023 · 2 comments
Closed

Comments

@mondrake
Copy link
Contributor

mondrake commented Dec 30, 2023

Describe the bug
Installing Drupal via Drush, you cannot use a service defined in the database driver module's .services.yml file, as it seems the module's services do not get registered in the container.

To Reproduce
See [META] Use events in Database Schema operations, comment #4.

Expected behavior
The service to be available.

Actual behavior
Service is not available.

Workaround
No

System Configuration

Q A
Drush version? 12.4.3
Drupal version? 11.x
PHP version n/a
OS? n/a

Additional information
Will add in due time.

@weitzman
Copy link
Member

drush calls install_drupal() and then watches. not sure more drush should do here.

@mondrake
Copy link
Contributor Author

For Drupal in its current stage, this is not a problem. It will become evident in the future if we will need event subscribers defined by modules to perform database schema operations. Most probably, yes, this would need changes to Drupal core rather than Drush. Anyway, let's close this for now and come back when (if) we will face this issue. Thanks

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

2 participants