Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15389

Simplify migration between event names

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.2-RC1
    • None
    • Events
    • None

      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);

       

            Elsensee Oliver Schramm [X] (Inactive)
            Elsensee Oliver Schramm [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: