You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding Laravel Modules into our project we've added the following line to the composer.json:
"psr-4": {
"Modules\\": "Modules/",
Everything worked fine but now with the latest composer version it shows numerous notices when running composer install command, like this:
Class CreateWebhookLogsTable located in ./Modules/ApiWebhooks/Database/Migrations/2020_09_12_170000_create_webhook_logs_table.php does not comply with psr-4 autoloading standard (rule: Modules\ => ./Modules). Skipping.
Class ComposerAutoloaderInite40fb95f05c4b5b511f77e2a3d7c43ca located in ./Modules/ApiWebhooks/vendor/composer/autoload_real.php does not comply with psr-4 autoloading standard (rule: Modules\ => ./Modules). Skipping.
Class Parsedown located in ./Modules/ApiWebhooks/vendor/erusev/parsedown/Parsedown.php does not comply with psr-4 autoloading standard (rule: Modules\ => ./Modules). Skipping.
It happens on "Generating optimized autoload files" step.
If we remove "Modules\\": "Modules/" line from the composer.json we are getting the following error:
In Application.php line 635: Class "Modules\ApiWebhooks\Providers\ApiWebhooksServiceProvider" not found
The text was updated successfully, but these errors were encountered:
Versions:
Description:
When adding Laravel Modules into our project we've added the following line to the composer.json:
Everything worked fine but now with the latest
composer
version it shows numerous notices when runningcomposer install
command, like this:It happens on "Generating optimized autoload files" step.
If we remove
"Modules\\": "Modules/"
line from the composer.json we are getting the following error:In Application.php line 635: Class "Modules\ApiWebhooks\Providers\ApiWebhooksServiceProvider" not found
The text was updated successfully, but these errors were encountered: