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

Simplify migration between event names

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 3.2.2-RC1
    • Events
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: