mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Theming] Minor improvements to moving ThemeBundle dependency
This commit is contained in:
parent
f8390b9b11
commit
226116b905
4 changed files with 14 additions and 8 deletions
|
|
@ -381,6 +381,7 @@ If your app never changed the hasher name configuration, you don't need to confi
|
|||
* PayPal Express Checkout gateway has been removed. Use now [PayPal Commerce Platform](https://github.com/Sylius/PayPalPlugin) integration.
|
||||
|
||||
## Theming
|
||||
Dependency on `sylius/theme-bundle` is moved from CoreBundle to ShopBundle and it will no longer be installed if you're running your shop in headless mode.
|
||||
* Channel's `themeName` form field existence is made optional and depends `ShopBundle` presence.
|
||||
* The `Sylius\Bundle\CoreBundle\Theme\ChannelBasedThemeContext` has been moved to the `Sylius\Bundle\ShopBundle\Theme\ChannelBasedThemeContext`
|
||||
* Dependency on `sylius/theme-bundle` is moved from CoreBundle to ShopBundle and it will no longer be installed
|
||||
if you're running your shop in headless mode.
|
||||
* Channel's `themeName` form field existence is made optional and depends on `ShopBundle` presence.
|
||||
* The `Sylius\Bundle\CoreBundle\Theme\ChannelBasedThemeContext` has been moved to the `Sylius\Bundle\ShopBundle\Theme\ChannelBasedThemeContext`.
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@
|
|||
"sylius/registry": "^1.6",
|
||||
"sylius/resource": "^1.12@alpha",
|
||||
"sylius/resource-bundle": "^1.11 || ^1.12@alpha",
|
||||
"sylius/theme-bundle": "^2.3",
|
||||
"sylius/theme-bundle": "^2.4",
|
||||
"sylius/twig-hooks": "~0.3.0",
|
||||
"symfony/asset": "^6.4.0 || ^7.1",
|
||||
"symfony/cache-contracts": "^2.5 || ^3.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{% set themeName = hookable_metadata.context.form.themeName %}
|
||||
{% if themeName %}
|
||||
{% set theme_name = hookable_metadata.context.form.themeName %}
|
||||
|
||||
{% if theme_name %}
|
||||
<div class="col-12 col-md-6">
|
||||
{{ form_row(hookable_metadata.context.form.themeName, sylius_test_form_attribute('theme')) }}
|
||||
{{ form_row(theme_name, sylius_test_form_attribute('theme')) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,11 @@
|
|||
|
||||
-->
|
||||
|
||||
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
||||
<container
|
||||
xmlns="http://symfony.com/schema/dic/services"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"
|
||||
>
|
||||
<services>
|
||||
<service id="sylius.theme.context.channel_based" class="Sylius\Bundle\ShopBundle\Theme\ChannelBasedThemeContext">
|
||||
<argument type="service" id="sylius.context.channel" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue