motze92 / office365-mail

Office365 transport for Laravel
MIT License
62 stars 21 forks source link

composer 2 #9

Closed dloused closed 3 years ago

dloused commented 3 years ago

If using composer v2 autoloader returns->

Class Office365Mail\Transport\Office365AddedTransportManager located in ./vendor/motze92/office365-mail/src/Transport/Office365MailAddedTransportManager.php does not comply with psr-4 autoloading standard. Skipping.

dloused commented 3 years ago

Ok, managed to load it by adding in composer.json :

"autoload": { "classmap": [ "database/seeds", "database/factories", "vendor/motze92/office365-mail/src/" ], "psr-4": { "App\": "app/" } },

Note: this was an old laravel v5.6 app using "motze92/office365-mail": "^1.0" with composer v.2

Thank you