-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide support for non-oop annotated development to be parsed. #9
Comments
Hello Zircota, Any idea when that would be implemented? Or any technical insights so I could help with that? I'm currently writing an API in Silex, and I'm really missing the "auto-documentation" of that API. |
I have not put any thought into this in the last few weeks as I have been distracted with a few hundred other things at work. However I will put some thought into it this week and devise a plan for this and get back to you when I have a more concise idea. |
I need to test this, however I am not certain what support Doctrine will give for non-oo code bases at this time but I fear it may not be much help. That said I have spent no time at all looking into it as of yet but will in the next week or so. |
As a note this has been on my mind for a while. At this time; however the Doctrine annotations do not support file and function level annotations discovery. I am looking into ways to extend it to support this or another route to achieve this goal. |
is there a workaround for this using silex? |
Since 0.6 you don't need classes anymore, as long as it's a *.php file and the annotations are in a doc-comment, you're good to go! See https://github.com/zircote/swagger-php/blob/master/tests/SwaggerTests/Fixtures3/routes.php for an example. PS. |
Thanks a lot, you are right, it was a problem in the annotation. I did a test with silex and worked great!! Thanks again |
Expand annotation awareness to not be method specific but also closures and no class structure implementations similar to
Example:
The text was updated successfully, but these errors were encountered: