Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27715

Theme paths not loaded by design engine

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.10.1
    • 1.10.0
    • Platform > MVC
    • None

    Description

      It may happen that theme paths are not loaded by the design engine.

      This is due to the fact that TwigThemePass compiler pass checking the existence of twig.loader.filesystem service. Problem is that very service being private, it can be inlined by Symfony at compile time (if it's referenced only once), making it unavailable from the container at all.

      The issue occurred with Symfony v2.8.25 (probably occurs with Symfony 3.x as well). Themes for templates won't be parsed at all since the compiler pass won't execute (hence the blocker priority).

      The fix consists on checking ezdesign.twig_theme_loader instead, which decorates twig.loader.filesystem.

      See https://github.com/ezsystems/ezplatform-design-engine/pull/10 (already merged). A version 1.0.1 will be very much appreciated

      Attachments

        Activity

          People

            Unassigned Unassigned
            9e9f2c72-d8ff-4ec0-b8df-c5a744234b9a@accounts.ibexa.co Jérôme Vieilledent
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: