Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[DependencyInjection] Decorate synthetic service #40784

Copy link
Copy link
Closed
@Firtzberg

Description

@Firtzberg
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.