Forum


Replies: 2   Views: 1923
Psr-4 compliance
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by net7  · 21-12-2020 - 15:33

Hi!

...I've phpdocx 11 installed on a package that I mantain with composer to include it into my projects.
For some reason, when I run "composer update" on my project I get a lot of messages like "Class X located in Y does not comply with psr-4 autoloading standard. Skipping."

Some examples: 
 

Generating optimized autoload files
Class Phpdocx\Crypto\CryptoPHPDOCX located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Crypto/CryptoPHPDOCX.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Logger\PhpdocxLogger located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Logger/PhpdocxLogger.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\License\GenerateDocx located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/License/GenerateDocx.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Processing\TemplateProcessing located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Processing/TemplateProcessing.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Processing\BatchTemplateProcessing located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Processing/BatchTemplateProcessing.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Resources\OOXMLResources located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Resources/OOXMLResources.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Parse\RepairPDF located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Parse/RepairPDF.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Parse\PrepareTemplate located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Parse/PrepareTemplate.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Parse\Repair located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Parse/Repair.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Charts\CreateChartFactory located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Charts/CreateChartFactory.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDF_COLORS located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Libs/TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDF_FONT_DATA located in ./vendor/net7/docs-generator/src/lib/phpdocx/Classes/Phpdocx/Libs/TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.

 

How can I deal with that?
Thanks!