Skip to content

[2.7] Decorated Processor docs seem wrong #1568

Closed
@KDederichs

Description

@KDederichs

In https://api-platform.com/docs/main/core/state-processors/ it says that you need to decorate the processor like this:

services:
    # ...
    App\State\UserProcessor:
        bind:
            $decorated: '@api_platform.doctrine.orm.state_processor'

but the @api_platform.doctrine.orm.state_processor doesn't seem to exist.

What does work though is injecting the @ApiPlatform\Doctrine\Common\State\PersistProcessor or @ApiPlatform\Doctrine\Common\State\RemoveProcessor directly though. Is that intended?
If so it should be reflected in the Docs.

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