Skip to content

[ShadcnAdminUi] Only configure StimulusBundle when it is enabled - #414

Open
loic425 wants to merge 1 commit into
Sylius:mainfrom
loic425:fix/shadcn-stimulus-bundle-guard
Open

loic425 wants to merge 1 commit into
Sylius:mainfrom
loic425:fix/shadcn-stimulus-bundle-guard

Conversation

@loic425

@loic425 loic425 commented Nov 23, 2026

Copy link
Copy Markdown
Member

SyliusShadcnAdminUiBundle prepends stimulus.controller_paths whenever AssetMapper is available, without checking that StimulusBundle is enabled. symfony/stimulus-bundle is required by the package, but if the bundle is missing from config/bundles.php, the container compilation fails with:

There is no extension able to load the configuration for "stimulus"

  • Only prepend the stimulus configuration when StimulusBundle is in kernel.bundles.
  • The asset_mapper path is still exposed, so the theme stylesheet keeps working.
  • Add a unit test for both cases.

Same guard as in the BootstrapAdminUi auto-registration (#402).

@loic425
loic425 force-pushed the fix/shadcn-stimulus-bundle-guard branch from 078c8bd to 6c62060 Compare November 23, 2026 15:25
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

Successfully merging this pull request may close these issues.

1 participant