L5-Swagger
L5-Swagger copied to clipboard
Placing annotations in external files
- L5-Swagger Version: 8.6.1
- PHP Version: 8.2.22
- OS: Ubuntu
Description:
Annotations placed in external files not read.
I would like to place annotations in external files beside the class/models/resources/etc. Creating a User.php model/class and an annotation file beside it UserAnnotation.php with just the annotation in it is ignored. No errors are thrown.
It appears that only php files with annotations are scanned if there is a matching class or method declaration.
Steps To Reproduce:
Create a file with class Foo.php Create a file FooAnnotation.php containing only the annotation block.