- Renamed
Sylius\Bundle\ThemeBundle\Configuration\Test\TestThemeConfigurationManager
service 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_mode
setting: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.twig
replaced withtemplate.html.twig
:Directory/Subdirectory:template.html.twig
replaced withDirectory/Subdirectory/template.html.twig
AcmeBundle:Dir/Subdir:template.html.twig
replaced with@Acme/Dir/Subdir/template.html.twig
-
Removed support for resource-based notation while referencing templates:
@AcmeBundle/Resources/views/template.html.twig
replaced 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.theme
replaced withSylius\Bundle\ThemeBundle\Collector\ThemeCollector
sylius.theme.asset.assets_installer
replaced withSylius\Bundle\ThemeBundle\Asset\Installer\AssetsInstaller
sylius.theme.asset.path_resolver
replaced withSylius\Bundle\ThemeBundle\Asset\PathResolverInterface
sylius.theme.filesystem
replaced withSylius\Bundle\ThemeBundle\Filesystem\FilesystemInterface
sylius.theme.finder_factory
replaced withSylius\Bundle\ThemeBundle\Factory\FinderFactoryInterface
sylius.theme.form.type.theme_choice
replaced withSylius\Bundle\ThemeBundle\Form\Type\ThemeChoiceType
sylius.theme.form.type.theme_name_choice
replaced withSylius\Bundle\ThemeBundle\Form\Type\ThemeNameChoiceType
sylius.theme.locator.application_resource
replaced withSylius\Bundle\ThemeBundle\Twig\Locator\ApplicationTemplateLocator
sylius.theme.locator.bundle_resource
replaced withSylius\Bundle\ThemeBundle\Twig\Locator\BundleTemplateLocator
andSylius\Bundle\ThemeBundle\Twig\Locator\NamespacedTemplateLocator
sylius.theme.locator.resource
replaced withSylius\Bundle\ThemeBundle\Twig\Locator\TemplateLocatorInterface
sylius.theme.templating.locator
replaced withSylius\Bundle\ThemeBundle\Twig\Locator\TemplateLocatorInterface
sylius.theme.translation.files_finder
replaced withSylius\Bundle\ThemeBundle\Translation\Finder\TranslationFilesFinderInterface
sylius.theme.translation.loader_provider
replaced withSylius\Bundle\ThemeBundle\Translation\Provider\Loader\TranslatorLoaderProviderInterface
sylius.theme.translation.resource_provider
replaced withSylius\Bundle\ThemeBundle\Translation\Provider\Resource\TranslatorResourceProviderInterface
-
Deprecated the following services:
sylius.context.theme
superseded bySylius\Bundle\ThemeBundle\Context\SettableThemeContext
insteadsylius.factory.theme_author
superseded bySylius\Bundle\ThemeBundle\Factory\ThemeAuthorFactoryInterface
insteadsylius.factory.theme_screenshot
superseded bySylius\Bundle\ThemeBundle\Factory\ThemeScreenshotFactoryInterface
insteadsylius.factory.theme
superseded bySylius\Bundle\ThemeBundle\Factory\ThemeFactoryInterface
insteadsylius.repository.theme
superseded bySylius\Bundle\ThemeBundle\Repository\ThemeRepositoryInterface
insteadsylius.theme.circular_dependency_checker
superseded bySylius\Bundle\ThemeBundle\Loader\CircularDependencyCheckerInterface
insteadsylius.theme.configuration.processor
superseded bySylius\Bundle\ThemeBundle\Configuration\ConfigurationProcessorInterface
insteadsylius.theme.configuration.provider
superseded bySylius\Bundle\ThemeBundle\Configuration\ConfigurationProviderInterface
insteadsylius.theme.configuration
superseded bySylius\Bundle\ThemeBundle\Configuration\ThemeConfiguration
insteadsylius.theme.context.settable
superseded bySylius\Bundle\ThemeBundle\Context\SettableThemeContext
insteadsylius.theme.hierarchy_provider
superseded bySylius\Bundle\ThemeBundle\HierarchyProvider\ThemeHierarchyProviderInterface
insteadsylius.theme.loader
superseded bySylius\Bundle\ThemeBundle\Loader\ThemeLoaderInterface
instead
-
Removed the following services:
sylius.theme.hydrator
sylius.theme.templating.cache.clearer
sylius.theme.templating.cache.warmer
sylius.theme.templating.file_locator