Closed alexander-schranz closed 3 years ago
I am generally fine with the SyliusThemeBundle, especially since it seem to be much more active. But I am wondering if we can make this change without any BC breaks. I mean we probably can, but it is questionable to me if it is worth the effort and risk (there'll probably be differences between these two libraries requiring us to write some translation code or we overlook them).
I can think of two strategies to make this easier:
@danrot I basically have no strong opinion on this if we make 2.1 or 3.0. I see there not so much problems. Basically I have no problem to make this bundle part of the core as long as the dependencies to the SyliusThemeBundle is optional, but at current state I would prefer keeping the code here so we can release a Symfony 5 Compatible theme version as soon as possible.
Actual Behavior
Currently its not possible to use the SuluThemeBundle with Symfony 5 because its build on top of the LiipThemeBundle.
Expected Behavior
After I created an issue on the LiipThemeBundle and talked to @lsmith77 he did point me to an alternative from https://github.com/Sylius/SyliusThemeBundle. After having a quick look at it I think it would be a great alternative to the current LiipThemeBundle.
Possible Solutions
Make LiipThemeBundle a optional dependencyMake SyliusThemeBundle a optional dependencyIf SyliusThemeBundle is installed set correct theme on request (see docs)How to upgrade
The upgrade for exists projects looks for me simple as it seems you just need to create inside the theme folder a
.json
file. https://github.com/Sylius/SyliusThemeBundle/blob/master/docs/your_first_theme.md with the theme configuration and it will then read the files from there. Things like parent themes are a lot easier in the SyliusThemeBundle configurable as in the LiipThemeBundle./cc @sulu/core-team What do you think?