Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #27626 [TwigBundle][DX] Only add the Twig WebLinkExtension if the…
… WebLink component is enabled (thewilkybarkid) This PR was squashed before being merged into the 3.4 branch (closes #27626). Discussion ---------- [TwigBundle][DX] Only add the Twig WebLinkExtension if the WebLink component is enabled | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | While adding elifesciences/journal#990 I was a bit confused why the `preload()` Twig function didn't work initially. Turns out the WebLink component is disabled by default if using the full stack, but the Twig extension is always enabled. This only adds the Twig extension if the component is enabled, and shows a friendly error message if it's not. Commits ------- cccb66f [TwigBundle][DX] Only add the Twig WebLinkExtension if the WebLink component is enabled
- Loading branch information
Showing
4 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters