update doc about UrlGenerator attribute
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2022-11-19 20:41:26 +01:00
parent cef8323fe6
commit a709d15624
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -94,9 +94,7 @@ use App\UrlGenerator\MyEntityGenerator;
class MyController extends PageController
{
/**
* @UrlGenerator(service=MyEntityGenerator::class, method="myActionGenerator", options={})
*/
#[UrlGenerator(service: MyEntityGenerator::class, method: 'myActionGenerator', options=[])]
public function myAction(MyEntity $entity)
{
// do stuff