-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symfony 5 compatibility and Switch to SyliusThemeBundle #19
Conversation
@danrot @alexander-schranz Alex told me to open a PR to show my work so far testing the SyliusThemeBundle in combination with Sulu. But I need some help with the test and pipline. |
@mfehr94 But otherwise it is already working as expected? If it is only about the tests you can get back to me some day in the office, that's probably the easiest way to fix that 🙂 |
We're using this in our development environment. Seems to work perfectly! For anyone who wants to have a workaround for Symfony 5 & Theme support:
|
After testing this, it does cause issues when editing a page from the Sulu admin. I will provide a stacktrace later today. |
Ive followed @JKetelaar approach and added the Bundle to a fresh Sulu skeleton made with Problem Stacktrace:
|
@SirCoffeeMonkey Thank you for report. Did you configure the |
@SirCoffeeMonkey if you have |
Addition to that your theme need a composer.json (it is possible to change the file name by config) file with the theme infos https://github.com/Sylius/SyliusThemeBundle/blob/master/docs/index.md. My
and the theme.json file in my themes/CrimsonTheme folder like this:
|
@alexander-schranz thank you for your swift response. I forgot to properly configure the sylius theme bundle. i have added following line to my webspace.xml:
Finally i created following folder structure:
For more details as to what can be configured in the theme composer.json you can refer to the links @mfehr94 kindly provided. Now it is running and no longer throwing any errors 👍 😁 |
1a1156d
to
4238a72
Compare
307348e
to
6f48444
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Prokyonn Some markdown syntax change requests.
UPGRADE.md
Outdated
@@ -0,0 +1,105 @@ | |||
# Upgrade | |||
|
|||
## 2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be a new major release as 3.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would focus the UPGRADE on a specific theme example.
f468652
to
36684e6
Compare
phpunit.xml.dist
Outdated
@@ -16,4 +16,14 @@ | |||
</exclude> | |||
</whitelist> | |||
</filter> | |||
|
|||
<php> | |||
<env name="SYMFONY_PHPUNIT_VERSION" value="8.5.9"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as using the phpunit bridge 8
is enough that the newest phpunit bridge is always installed. ^8.5.9
would only be required when we require phpunit package in the composer.json.
<env name="SYMFONY_PHPUNIT_VERSION" value="8.5.9"/> | |
<env name="SYMFONY_PHPUNIT_VERSION" value="8.5.9"/> |
UPGRADE.md
Outdated
composer remove liip/theme-bundle --no-update | ||
|
||
# Install new theme-bundle | ||
composer require sylius/theme-bundle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also add sulu/theme-bundle
update here:
composer require sylius/theme-bundle | |
composer require sylius/theme-bundle:"^2.0" --no-update | |
composer require sulu/theme-bundle:"^3.0" --with-dependencies |
36684e6
to
3abd106
Compare
3abd106
to
4526b1f
Compare
|
||
## 3.0 | ||
|
||
### Switch from LiipThemeBundle to SyliusThemeBundle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lsmith77 Parts of this UPGRADE.md
could be used in the LiipThemeBundle docs when the project will be marked as abandoned.
├── bin | ||
├── config | ||
├── ... | ||
├── templates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would directly use themes
folder here like its in the sylius documentation
@Prokyonn thanks for fixing the tests and dokumentationen |
README.md
Outdated
|
||
### Configure your themes | ||
|
||
Every theme must have its own configuration file in form of a `composer.json`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we use composer.json
or theme.json
in the examples?
Co-authored-by: nnatter <niklas.natter@gmail.com>
Thank you @mfehr94 @Prokyonn ! |
What's in this PR?
This PR removes LiipThemeBundle dependency and added SyliusThemeBundle to have Symfony 5 compatibility.
BC Breaks/Deprecations
Due to the exchange of bundles, the folder structure must be adapted and the configuration exchanged for old projects.
To Do
Upgrade.md