Skip to content
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

Controllers skal extende AbstractController #1482

Open
Lundli opened this issue Nov 23, 2020 · 1 comment
Open

Controllers skal extende AbstractController #1482

Lundli opened this issue Nov 23, 2020 · 1 comment
Assignees
Labels

Comments

@Lundli
Copy link
Member

Lundli commented Nov 23, 2020

Fra Symfony docs:
image

https://symfony.com/doc/4.0/best_practices/controllers.html

@Lundli Lundli self-assigned this Nov 23, 2020
@Lundli
Copy link
Member Author

Lundli commented Nov 23, 2020

Dette er fra Symfony sin best-practice side.

Viktig å være klar over at ved bruk av AbstractController er man nødt til å bruke Dependency Injection for servicene, this->get() vil ikke lengre fungere.
(https://symfony.com/doc/4.2/best_practices/controllers.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant