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

PHP fatal error when decorating Twig phpBB extension service in phpBB extension

XMLWordPrintable

      If phpBB Twig extension is decorated in phpBB extension, PHP fatal error is thrown, example:

      Fatal error: Uncaught LogicException: Unable to register extension "rxu\templateventsort\template\twig\extension" as it is already registered. in G:\htdocs\33\vendor\twig\twig\src\ExtensionSet.php on lineĀ 149

      That is because new service is an alias of the decorated core one, thus it's already registered after phpBB extension got enabled, but phpBB template engine doesn't perform the check.

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: