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

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.3.1, 1.4.1
    • Fix Version/s: 1.5.0
    • Component/s: Platform > REST API v2
    • Labels:
      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

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                slawomir.uchto@ez.no SÅ‚awomir Uchto
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: