- Issue created by @RedwanJamous
The BootstrapLayoutsPluginManager
constructor currently:
container.namespaces
by calling exchangeArray()
, causing all other plugin managers (ActionManager, ViewsPluginManager, etc.) to scan the updated namespaces list.As a result, under Drush site installs, modules like Entity Print (which ship @Action plugins) trigger the core ActionManager, which immediately discovers FlagActionDeriver from the Flag module—even though Flag’s services aren’t yet registered—causing a ServiceNotFoundException: You have requested a non-existent service "flag".
due to the fact that FlagActionDeriver tries to get flag service when it's instantiated.
Versions:
web/profiles/custom/test_profile
with test_profile.info.yml
:name: Test
type: profile
core_version_requirement: '^10'
distribution:
name: Test
langcode: en
install:
- bootstrap_layouts
- entity_print
- flag
themes:
- olivero
- claro
composer require drupal/flag drupal/entity_print drupal/bootstrap_layouts
drush site:install \
--account-mail="admin@example.com" \
--account-name="admin" \
--site-mail="no-reply@example.com" \
--site-name="Test" \
-y -vvv
ServiceNotFoundException: You have requested a non-existent service "flag".
container.namespaces
service.container.namespaces
remains identical to the kernel’s compile-time list.Active
5.0
Code