- Renamed
Sylius\Bundle\ThemeBundle\Configuration\Test\TestThemeConfigurationManagerservice toSylius\Bundle\ThemeBundle\Configuration\Test\TestThemeConfigurationManagerInterface
-
Theme structure has been modified to better imitate Symfony application structure:
-
Templates:
THEME/views/replaced withTHEME/templates/THEME/AcmeBundle/views/replaced withTHEME/templates/bundles/AcmeBundle/
-
Translations:
THEME/AcmeBundle/translations/merged toTHEME/translations/- It is not possible now to define translations for a given bundle (and it has never been, they were merged behind the scenes)
-
Assets:
THEME/AcmeBundle/public/replaced withTHEME/public/bundles/acme/- It replicates the way in which assets are loaded (
{{ asset('bundles/acme/asset.jpg') }})
-
-
You can still use the old theme structure by enabling
sylius_theme.legacy_modesetting:sylius_theme: legacy_mode: true
However, it is deprecated as of ThemeBundle 2.0 and will be removed in ThemeBundle 3.0.
-
Removed support for bundle notation while referencing templates:
::template.html.twigreplaced withtemplate.html.twig:Directory/Subdirectory:template.html.twigreplaced withDirectory/Subdirectory/template.html.twigAcmeBundle:Dir/Subdir:template.html.twigreplaced with@Acme/Dir/Subdir/template.html.twig
-
Removed support for resource-based notation while referencing templates:
@AcmeBundle/Resources/views/template.html.twigreplaced with@Acme/template.html.twig
- In ThemeBundle v1, only the bundle assets could be customised with a theme. In ThemeBundle v2, all assets can be themed.
-
Renamed the following services:
sylius.collector.themereplaced withSylius\Bundle\ThemeBundle\Collector\ThemeCollectorsylius.theme.asset.assets_installerreplaced withSylius\Bundle\ThemeBundle\Asset\Installer\AssetsInstallersylius.theme.asset.path_resolverreplaced withSylius\Bundle\ThemeBundle\Asset\PathResolverInterfacesylius.theme.filesystemreplaced withSylius\Bundle\ThemeBundle\Filesystem\FilesystemInterfacesylius.theme.finder_factoryreplaced withSylius\Bundle\ThemeBundle\Factory\FinderFactoryInterfacesylius.theme.form.type.theme_choicereplaced withSylius\Bundle\ThemeBundle\Form\Type\ThemeChoiceTypesylius.theme.form.type.theme_name_choicereplaced withSylius\Bundle\ThemeBundle\Form\Type\ThemeNameChoiceTypesylius.theme.locator.application_resourcereplaced withSylius\Bundle\ThemeBundle\Twig\Locator\ApplicationTemplateLocatorsylius.theme.locator.bundle_resourcereplaced withSylius\Bundle\ThemeBundle\Twig\Locator\BundleTemplateLocatorandSylius\Bundle\ThemeBundle\Twig\Locator\NamespacedTemplateLocatorsylius.theme.locator.resourcereplaced withSylius\Bundle\ThemeBundle\Twig\Locator\TemplateLocatorInterfacesylius.theme.templating.locatorreplaced withSylius\Bundle\ThemeBundle\Twig\Locator\TemplateLocatorInterfacesylius.theme.translation.files_finderreplaced withSylius\Bundle\ThemeBundle\Translation\Finder\TranslationFilesFinderInterfacesylius.theme.translation.loader_providerreplaced withSylius\Bundle\ThemeBundle\Translation\Provider\Loader\TranslatorLoaderProviderInterfacesylius.theme.translation.resource_providerreplaced withSylius\Bundle\ThemeBundle\Translation\Provider\Resource\TranslatorResourceProviderInterface
-
Deprecated the following services:
sylius.context.themesuperseded bySylius\Bundle\ThemeBundle\Context\SettableThemeContextinsteadsylius.factory.theme_authorsuperseded bySylius\Bundle\ThemeBundle\Factory\ThemeAuthorFactoryInterfaceinsteadsylius.factory.theme_screenshotsuperseded bySylius\Bundle\ThemeBundle\Factory\ThemeScreenshotFactoryInterfaceinsteadsylius.factory.themesuperseded bySylius\Bundle\ThemeBundle\Factory\ThemeFactoryInterfaceinsteadsylius.repository.themesuperseded bySylius\Bundle\ThemeBundle\Repository\ThemeRepositoryInterfaceinsteadsylius.theme.circular_dependency_checkersuperseded bySylius\Bundle\ThemeBundle\Loader\CircularDependencyCheckerInterfaceinsteadsylius.theme.configuration.processorsuperseded bySylius\Bundle\ThemeBundle\Configuration\ConfigurationProcessorInterfaceinsteadsylius.theme.configuration.providersuperseded bySylius\Bundle\ThemeBundle\Configuration\ConfigurationProviderInterfaceinsteadsylius.theme.configurationsuperseded bySylius\Bundle\ThemeBundle\Configuration\ThemeConfigurationinsteadsylius.theme.context.settablesuperseded bySylius\Bundle\ThemeBundle\Context\SettableThemeContextinsteadsylius.theme.hierarchy_providersuperseded bySylius\Bundle\ThemeBundle\HierarchyProvider\ThemeHierarchyProviderInterfaceinsteadsylius.theme.loadersuperseded bySylius\Bundle\ThemeBundle\Loader\ThemeLoaderInterfaceinstead
-
Removed the following services:
sylius.theme.hydratorsylius.theme.templating.cache.clearersylius.theme.templating.cache.warmersylius.theme.templating.file_locator