sulu / sulu-docs

Sulu documentation
https://docs.sulu.io
22 stars 116 forks source link

Add controller.service_arguments tag #769

Closed remdan closed 1 year ago

remdan commented 1 year ago
Q A
Fixed tickets fixes #issuenum
Related PRs sulu/sulu#prnum
License MIT

What's in this PR?

https://symfony.com/doc/current/controller/service.html

If your controllers don't extend the AbstractController class, you must explicitly mark your controller services as public. Alternatively, you can apply the controller.service_arguments tag to your controller services.

Why?

If you prefer, you can use the #[AsController] PHP attribute to automatically apply the controller.service_arguments tag to your controller services...

alexander-schranz commented 1 year ago

@remdan Tank you!