You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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).
The text was updated successfully, but these errors were encountered: