我正在使用Symfony 3开发API,希望使用apidoc创建文档。Apidoc使用注释来工作:
/**
* @api {get} /user/:id Request User information
* @apiName GetUser
* @apiGroup User
*
* @apiParam {Number} id Users unique ID.
*
* @apiSuccess {String} firstname Firstname of the User.
* @apiSuccess {String} lastname Lastname of the User.
*/
但是Symfony抛出了一个注释异常:
[语义错误]方法AppBundle\Controller\API\ApiLoginController::loginAction()中的注释"@apiName"从未被导入。您是否忘记为此注释添加"use"语句?
500内部服务器错误-AnnotationException
有没有办法告诉Symfony忽略这些注释?提前感谢。