Skip to content

Allow injection via LiformInterface #34

@tacman

Description

@tacman

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions