Skip to content

[Question] Is it possible to pass arguments to filter in yaml ? #2225

@spincon

Description

@spincon

Hello,
i did try to pass arguments to my filters i did declare in resources.yml file:

App\Entity\OcExtendedPerson:
    shortName: 'Users'
    description: 'A company user'
    collectionOperations:
        get:
            method: 'GET'
            path: '/users'
            filters: 
            - 'App\Bridge\ApiPlatform\Filter\LdapFilterFilter'
            - 'App\Bridge\ApiPlatform\Filter\AttributeFilter'
    itemOperations:
        get:
            method: 'GET'
            path: '/users/{id}'
    properties:
        dn:
            identifier: true

But i did not succeed in finding the right syntax, is it possible ?

Thanks in advance,
Regards

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