Skip to content

AttributeAutoconfigurationPass ignore abstract definitions #59872

Open
@KubaChoice

Description

@KubaChoice

Symfony version(s) affected

all

Description

Can somebody review or explain why AttributeAutoconfigurationPass (resp. $container->registerAttributeForAutoconfiguration) ignore abstract definitions?

Bypassed solution is to use:

  • #AutoconfigureTag or #Autoconfigure where abstract definition are not ignored.

So why it mattes with AttributeAutoconfigurationPass?

How to reproduce

  • Tag some service with custom tag
  • Make service abstract in definition
  • in e.g. Kernel build() call $container->registerAttributeForAutoconfiguration for this custom tag

Possible Solution

Remove isAbstract condition from

Additional Context

No response

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy