Skip to content

Add documentation the processor services need to be public #406

@daften

Description

@daften

By default, the symfony4 services with autoconfigure aren't public. I've noticed however that processors need to be declared publicly to work.

If the service isn't public, this is the error message I receive:

[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
  The "App\Service\Queue\Processor\RunCommandProcessor" service or alias has been removed or inlined when the container was compiled. You should either make it public, or s
  top using the container directly and use dependency injection instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions