Details
-
Bug
-
Resolution: Obsolete
-
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.