Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15389

Simplify migration between event names

    Details

    • Type: Improvement
    • Status: Unverified Fix (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.2-RC1
    • Component/s: Events
    • Labels:
      None

      Description

      We have some misspelled event names and it might be worth it to have an easy syntax in which we can give extension authors time to migrate to the correct event to not break backwards compatibility.

      This might also be helpful when moving some front-end pages to the controllers to have some names which fit to the naming scheme. (Or maybe we have two events now which will do practically the same in a later version..)

      For all these reasons there should be an easy syntax but fear not! Thanks to the new array syntax introduced in PHP 5.4 we can have something as easy as:

      $dispatcher->trigger_event(['new_name', 'old_name'], $vars);

       

        Attachments

          Activity

            People

            • Assignee:
              Elsensee Oliver Schramm
              Reporter:
              Elsensee Oliver Schramm
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: