Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

The Symfony legacy bridge for framework developers

How Exponential 6 and Symfony run as one application - the legacy bridge bundle that loads the Exponential 6 kernel inside a Symfony platform installation, what each side handles, the legacy_admin siteaccess, the…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/web-framework-developers/symfony-and-the-legacy-bridge.md

On this page

The Symfony legacy bridge for framework developers

This page is for Symfony developers who want Exponential 6 and their Symfony code in one application. The legacy bridge is a Symfony bundle that loads the Exponential 6 kernel inside a Symfony platform installation; one web application then serves the legacy administration and templates and the Symfony stack, on the same database (Legacy bridge, Symfony and the legacy bridge). It is not a way to add Symfony to a stand-alone Exponential 6 installation: the host is a Symfony platform project.

Contents

  1. The pieces
  2. Which side does what
  3. Which line for which Symfony
  4. Working across the boundary
  5. Limits

The pieces

PackageRole
se7enxweb/legacy-bridgethe bundle (eZ\Bundle\EzPublishLegacyBundle\EzPublishLegacyBundle) that boots the legacy kernel
se7enxweb/ibexa-legacy-bridgethe port for the Ibexa 4.6 generation
se7enxweb/site-legacy-bundleglue for Netgen-style sites: legacy mapper, templating, event listeners
se7enxweb/ngsymfonytoolsa legacy extension with template operators that let a .tpl include Twig or render a Symfony controller
se7enxweb/exponential-legacy-installerthe Composer installer for the legacy side

The legacy side is reached through a siteaccess named legacy_admin, configured with legacy_mode: true (Legacy bridge bundle specification).

Which side does what

Kept in Exponential 6 (legacy)Done by Symfony
content classes, roles and policies, the legacy administrationpublic rendering with Twig, routes, controllers
.tpl templates and legacy extensionsbundles, services, dependency injection
workflows, cronjob parts, legacy modulesREST and GraphQL of the platform, Symfony console

Both read the same content: what editors create in the legacy administration shows up on the Twig front end. Inside the bridge, the legacy web kernel can receive Symfony's service container (ezpKernelWeb::hasServiceContainer()).

Which line for which Symfony

Bridge linePlatformSymfonyPHP
master (v2.1.x)eZ Platform 2.5 LTS3.48.x with fixes
3.xeZ Platform 3.35.4^8.0
4.xIbexa 4.6 compatible installs5.4^8.0
5.xPlatform v57.4^8.4

Details, tags and requirements: Which version for which platform.

Working across the boundary

  • Run a legacy script with the platform's settings: php bin/console exponential:legacy:script bin/php/ezcache.php --clear-id=content --siteaccess=legacy_admin (the exponential:legacy:* names exist from the lines and tags listed on the feature page; older lines have only the ezpublish:* names) (Console commands).
  • Twig from a legacy template: activate ngsymfonytools and use its operators (Call Twig from a legacy template).
  • Caches: by default the bridge clears the platform's persistence cache when the legacy content view cache is cleared, and on cache:clear (ez_publish_legacy.clear_all_spi_cache_from_legacy and clear_all_spi_cache_on_symfony_clear_cache).
  • Shared logic: keep business rules in plain PHP classes both sides can call.

Limits

  • The upstream project stated that the bridge is not supported on eZ Platform 3.x because the schema would diverge; the se7enxweb branches keep the legacy schema for the platform kernels listed above.
  • Two stacks mean two sets of caches, templates and deployments to run and test on every release.
  • Not every platform product carries the legacy kernel: Exponential Platform DXP does not (The platform products).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x