mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-28 23:10:51 +00:00
[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:
parent
70f4535cd3
commit
d9b36c6241
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user