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

Fix using view builders with closure controllers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 1.7.7
    • Fix Version/s: 1.7.8
    • Component/s: None
    • Labels:
      None

      Description

      In Symfony, controller can be a closure, in addition to referencing the controller with 'service:method' or 'Bundle:Controller:Action'.

      Using closure as a controller results in a warning that strpos cannot be used because the argument is not a string.

      The error comes from the view builder system that assumes that the controller is always a string.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            edi.modric Edi Modrić
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: