Skip to content

Commit

Permalink
[Doc] Update documentation for Class was not found on autoload (#1472)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
  • Loading branch information
samsonasik and TomasVotruba committed Dec 12, 2021
1 parent 70f4535 commit d9b36c6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build/target-repository/docs/static_reflection_and_autoload.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit d9b36c6

Please sign in to comment.