Skip to content

Missing attribute class of service-factory #9716

Closed
@lex111

Description

@lex111

As of Symfony 3.3 when using factory-service without specifying a class attribute, this warning will be displayed:

PHP Deprecated: Relying on its factory's return-type to define the class of service "app.factory.translator" is deprecated since Symfony 3.3 and won't work in 4.0. Set the "class" attribute to ... on the service definition instead

It is necessary to supplement the information on this page, that it is necessary to specify the class attribute with the name of the class that the factory creates.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions