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

Reduce config.php inclusions in DIC code

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev, 3.1.0-b2
    • Fix Version/s: 3.1.0-RC2
    • Component/s: Other
    • Labels:
      None

      Description

      Currently config.php is included in the following locations (3.1.0-b2 line numbers):

      • phpBB\common.php:22
      • phpBB\includes\functions_container.php:33
      • includes\functions_container.php:52
      • phpBB\phpbb\di\extension\config.php:37

      All of which (following the backtrace) come from common.php's container creation (https://github.com/phpbb/phpbb/blob/develop-ascraeus/phpBB/common.php#L94). The necessary variables from config.php should be passed in/down instead of including the file 4 times and then only the necessary inclusion in common.php occurs.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              bantu Andreas Fischer
              Reporter:
              MichaelC Michael Cullum
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development