[Doc] Update documentation for Class was not found on autoload (#1472)

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
This commit is contained in:
Abdul Malik Ikhsan 2021-12-12 23:08:37 +07:00 committed by GitHub
parent 70f4535cd3
commit d9b36c6241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,3 +90,21 @@ In this case you may want to try one of the following solutions:
// as much as you can or you will slow down each run
]);
```
Other solution is by register the path of the class to composer.json's `"files"` config, eg:
```javascript
"autoload-dev": {
"files": [
"vendor/acme/my-custom-dependency/src/Your/Own/Namespace/TheAffectedClass.php"
]
}
```
After that, run:
```bash
composer dump-autoload
```
and re-run the rector.