GrofGraf / laravel-pdf-merger

Package for Laravel that merges multiple PDFs into one.
MIT License
29 stars 44 forks source link

Composer auto-load error: does not comply with psr-4 #16

Open mstyles opened 4 years ago

mstyles commented 4 years ago

PDFMergerServiceProvider and PDFMergerFacade are failing to autoload when using Composer 2. Output from composer install:

Deprecation Notice: Class GrofGraf\LaravelPDFMerger\Providers\PDFMergerServiceProvider located in ./vendor/grofgraf/laravel-pdf-merger/src/providers/PDFMergerServiceProvider.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class GrofGraf\LaravelPDFMerger\Facades\PDFMergerFacade located in ./vendor/grofgraf/laravel-pdf-merger/src/facades/PDFMergerFacade.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
mstyles commented 3 years ago

@GrofGraf would you be able to look at the PR fix I submitted for this? Thank you! <3

mstyles commented 3 years ago

Seems #15 was opened before mine and offers the same fix. Feel free to merge either one XD