'Symfony Annotation creation error in doctrine
I am facing an error while running the command php bin/console migrations:migrate --no-interaction.
Doctrine\Common\Annotations\AnnotationException: [Creation Error] The annotation @authenticated declared on method Zoot\Client\Presenters\EmployeePresenter::actionEmployeeList() does not accept any values, but got {"value":"admin"}.
/**
* @ApiRoute("/api/v1/client/employeess", method="GET", description="Get employeess")
* @Response(200)
* @Response(400, code="10001", description="Invalid ordering parameter")
* @Authenticated("admin")
*/
public function actionEmployeeList(): void
{
....
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
