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

Can register custom OutputVisitor but can't set its priority so it fails due to match-all regexp in kernel

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 1.5.0
    • 1.3.1, 1.4.1
    • Platform > REST API v2
    • None

    Description

      You can define custom output visitors and tag it (name: ezpublish_rest.output.visitor, regexps: something) but it won't work with current implementation unless you load your bundle before new eZ\Bundle\EzPublishRestBundle\EzPublishRestBundle(), (and this way sucks). It's because of order of output visitors passed to compiler pass while kernel configuration contains Pokemon "gotta catch'em all" regexp (^./.$) so it always return application/vnd.ez.api... regardless of visitors and generators registered after that one.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slawomir.uchto@ibexa.co Sławomir Dołżycki-Uchto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: