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

\phpbb\extension\finder is finding too many routing files

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-b2
    • Fix Version/s: 3.1.0-b3
    • Component/s: Extensions
    • Labels:
      None

      Description

      Our extension makes use of some symfony bundles, those bundles include some routing.yml files which are used for testing and other purposes that should not be automatically found and loaded.

      Currently the \phpbb\extension\finder is too general by scanning for all config/routing.yml files, finding all kinds of files that have no reason to be included.

      The easiest solution would be to limit the depth of the finder. /ext/vendor/extension/config/ + 1 should be sufficient.

      Another possible solution would be to exclude the vendor directory completely. Any routing files in those paths would need to be included from within the main routing.yml file.

        Attachments

          Activity

            People

            • Assignee:
              nickvergessen Joas Schilling
              Reporter:
              rfdy rfdy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: