Skip to content

Document synthetic services #2671

Closed
Closed
@wouterj

Description

@wouterj

I just discovered that we haven't any docs about synthetic services.

Synthetic services are services which are injected later on. For instance, the kernel service is synthetic, because it's injected later on:

<service id="kernel" synthetic="true" />
class Kernel
{
// ...
   pubic function initializeContainer()
   {
       // ...
       $container->set('kernel', $this);
   }
}

It should get documented in an article under components/dependency_injection

Metadata

Metadata

Assignees

No one assigned

    Labels

    DependencyInjectionactionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions