Skip to content

Class names are not trimmed when loaded from services.xml  #3644

@ShurikAg

Description

@ShurikAg

When service is configured in services.xml file, currently they MUST be formatted very strictly. No spaces or new lines allowed.
For example:

<parameter key="webservice_user_provider.class">
   Ea\SecurityBundle\User\Provider\WebUserProvider
</parameter>

Ends up with an error:
InvalidArgumentException: "'Ea\SecurityBundle\User\Provider\WebUserProvider '" is not a valid class name for the "webservice_user_provider" service.

I think the class names should be trimmed form spaces and new lines to make any valid XML acceptable.

Thanks.
A.

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