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

Allow injection via LiformInterface #34

Open
tacman opened this issue May 5, 2023 · 0 comments
Open

Allow injection via LiformInterface #34

tacman opened this issue May 5, 2023 · 0 comments

Comments

@tacman
Copy link
Collaborator

tacman commented May 5, 2023

Fetching the service via $this->get, as described in the README, has been removed in Symfony 6, as all services are private by default and the container and get() helper methods aren't available.

Instead, the documentation should reflect getting the service by injecting it in the contructor or the controller method, e..g

__construct(private Liform $liform)

Ideally, though, this would work with LiformInterface (the abstract instead of the concrete).

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

No branches or pull requests

1 participant