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

[dependency-injection] does not autoconfigure my form extension when another form extension is configured manually in services.yaml #35916

Copy link
Copy link
Closed
@TomaszGasior

Description

@TomaszGasior
Issue body actions

Symfony version(s) affected: 4.4.5

Description
After updating symfony/dependency-injection from 4.4.4 to 4.4.5 my one form extension is not autoconfigured (tagged) by Symfony framework. If I remove manual configuration of another form extension from services.yaml, the first one is properly autoconfigured (tagged).

How to reproduce

  1. Clone my project: https://github.com/TomaszGasior/RadioLista-v3. Chechout 44f1ef41f1dd115f3405730bc8eaee512d10d325 commit where all dependencies except symfony/dependency-injection are up to date at the moment where I write this text.
  2. bin/phpunit -> tests should pass
  3. Update symfony/dependency-injection to 4.4.5.
  4. bin/phpunit -> Tests related to adding, removing and editing radio stations should fail. Twig templates of these pages rely on variable from RadioStationEditExtension form extension which is not autoconfigured.
  5. Remove manual configuration of App\Form\Extension\ValidationFlashErrorExtension from services.yaml. (My app contains two form extensions. ValidationFlashErrorExtension needs to be set up manually to get special priority.)
  6. bin/phpunit -> tests should pass

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.