Optimize the composer automatically load, execute the command: composer dumputoload -o, prompt: deprecation notice: do not comply with PSR-0 autoloading stan ard. It will not autoload anymore in composer v2.0. Analysis
1. Optimize the composer to automatically load, execute the command: composer dumputoload -o, prompt: deprecation notice: does not comply with PSR-0 autoloading stan
Ard. It will not autoload anymore in composer v2.0. As shown in Figure 1
PS E:\wwwroot\pcs-api-feature-php-7.4-dumpautoload> composer dumpautoload -o
Generating optimized autoload files
Deprecation Notice: Class HTMLPurifier_Language_en_x_test located in E:/wwwroot/pcs-api-feature-php-7.4-dumpautoload/vendor/ezyang/htmlpurifier/library\HTMLPurifier\Language\classes\en-x-test.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathArrayAccessTest located in E:/wwwroot/pcs-api-feature-php-7.4-dumpautoload/vendor/flow/jsonpath/tests\JSONPathArrayAccessTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathBenchmarks located in E:/wwwroot/pcs-api-feature-php-7.4-dumpautoload/vendor/flow/jsonpath/tests\JSONPathBenchmarks.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathDashedIndexTest located in E:/wwwroot/pcs-api-feature-php-7.4-dumpautoload/vendor/flow/jsonpath/tests\JSONPathDashedIndexTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathLexerTest located in E:/wwwroot/pcs-api-feature-php-7.4-dumpautoload/vendor/flow/jsonpath/tests\JSONPathLexerTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathSliceAccessTest located in E:/wwwroot/pcs-api-feature-php-7.4-dumpautoload/vendor/flow/jsonpath/tests\JSONPathSliceAccessTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathTest located in E:/wwwroot/pcs-api-feature-php-7.4-dumpautoload/vendor/flow/jsonpath/tests\JSONPathTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Flow\JSONPath\Test\JSONPathTestClass located in E:/wwwroot/pcs-api-feature-php-7.4-dumpautoload/vendor/flow/jsonpath/tests\JSONPathTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Generated optimized autoload files containing 3053 classes
2. After translation, the notification of deprecation: the class does not meet the automatic loading standard of PSR-0. It will no longer be loaded automatically in Composer V2.0. However, the current version of Composer is: Composer Version 1.10.6, you can ignore it for the time being. as shown in Figure 2
PS E:\wwwroot\pcs-api-feature-php-7.4-dumpautoload> composer -V
Composer version 1.10.6 2020-05-06 10:28:10
3. The file vendor/composer/autoload_classmap.php, vendor/composer/autoload_static.php is regenerated, and each has added more than 2000 lines. as shown in Figure 3
4. These are warnings and attention, no errors. Still can continue to use. If the composer is upgraded to 2.0 in the later period, you need to find a way to delete or upgrade the class library that does not meet the PSR-0 automatic loading standard.


