Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp