Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20524

"composer.phar dump-autoload --optimize" corrupts autoloading

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Critical Critical
    • None
    • None
    • None

    Description

      By running:

      $ composer.phar dump-autoload --optimize
      

      It will generate a classmap file in vendor/composer/autoload_classmap.php that will contain the following entries:

      'eZDebug' => $baseDir . '/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/Tests/LegacyTest/ezdebug.php',
      'eZDebugSetting' => $baseDir . '/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/Tests/LegacyTest/ezdebugsetting.php',
      'eZExecution' => $baseDir . '/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/Tests/LegacyTest/ezexecution.php',
      'eZExtension' => $baseDir . '/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/Tests/LegacyTest/ezextension.php',
      'eZINI' => $baseDir . '/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/Tests/LegacyTest/ezini.php',
      

      Those are critical classes to eZ Publish Legacy part.

      My opinion is that not only those classes shouldn't be in the autoload map, but all Tests related classes which aren't useful for web-handled requests and by doing so, that would also optimize every requests by loading a smaller map.

      Attachments

        Activity

          People

            Unassigned Unassigned
            patrick.allaert-obsolete@ez.no Patrick Allaert (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: