ComponentSourceHooks OOP hooks break installs when using config_install

Created on 5 May 2025, 7 days ago

Overview

We just updated to 0.2.1-alpha8 and our installs broke. We use config_install && config_install_path. The error is:

 [notice] Performed install task: install_bootstrap_full

In ContainerBuilder.php line 1093:
                                                                                                           
  You have requested a synthetic service ("kernel"). The DIC does not know how to construct this service.  

Turns out the installer kernel resets the container which wipes away synthetic services. When ComponentSourceHooks is constructed on modules_installed the process explodes

See this epic thread for background https://drupal.slack.com/archives/C1BMUQ9U6/p1746475975640899

Proposed resolution

Don't use DI for fetching the block and component manager, Use static service calls and silence PHPStan

User interface changes

πŸ› Bug report
Status

Active

Version

0.0

Component

Component sources

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024