8000 [DependencyInjection] Decorate synthetic service · Issue #40784 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[DependencyInjection] Decorate synthetic service #40784
Closed
@Firtzberg

Description

@Firtzberg

Is it possible to decorate a synthetic service (set at runtime)?
When I try to do so I get the error message A synthetic service ("Vendor\Product\Decorator.inner") must be public.

Here's the YAML file

services:
  Vendor\Product\Synthetic:
    public: true
    synthetic: true
  Vendor\Product\Decorator:
    class: stdClass
    decorates: Vendor\Product\Synthetic
    public: true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0