25

Move internal Container configuration from XML to PHP · Issue #37186 · symfony/...

 4 years ago
source link: https://github.com/symfony/symfony/issues/37186
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Member

fabpot commented on 10 Jun

edited by Tobion

In Symfony 6, I we will promote usage of configuration written in PHP instead of YAML. For third-party bundles and core, we should do the same, replacing XML with PHP. Doing so would remove the need for the XML lib for core.

The biggest advantage is auto-completion with any modern IDE without explicit support for Symfony, and probably one less thing to learn (how to configure things in YAML/XML).

Be warned that semantic configuration will stay in YAML for now (as using PHP is much harder there).

#36778 did the work for the Twig bundle as an example.

We now need help from the community to move all the other bundles:

PLEASE, comment here BEFORE starting to work on something and WAIT for the confirmation to avoid duplicate work.

  • src/Symfony/Bundle/DebugBundle/Resources/config/services.xml (@jschaedl)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/annotations.xml (@magnetik)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/assets.xml (@NguyenTruongLinh)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/cache*.xml (@iamvar)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/collectors.xml (@hvt)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/console.xml (@AhmedRaafat14)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/debug*.xml (@TuxBoy)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/error_renderer.xml (@benji07)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/esi.xml (@tuanminhgp)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/form*.xml (@misekai)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/fragment*.xml (@idetox)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/http*.xml (@IonBazan)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/identity_translator.xml (@smmd)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/lock.xml (@tomasjav)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer*.xml (@instabledesign)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/messenger*.xml (@hyoa)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/mime_type.xml (@GromNaN)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier*.xml (@szepczynski)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/profiling.xml (@hvt)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/property_access.xml (@qneyrat)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/property_info.xml (@qneyrat)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/request.xml (@dangkhoagms)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/routing*.xml (@phamuyentri)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/secrets.xml (@GromNaN)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/security_csrf.xml (@Noweh)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/serializer.xml (@mamontovdmitriy)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/services.xml (@rvanlaak)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/session.xml (@cocorambo)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/ssi.xml (@50bhan)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/test.xml (@GaryPEGEOT)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/translation*.xml (@malteschlueter)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/validator*.xml (@simivar)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/web*.xml (@ck-developer)
  • src/Symfony/Bundle/FrameworkBundle/Resources/config/workflow.xml (@lyrixx)
  • src/Symfony/Bundle/SecurityBundle/Resources/config/collectors.xml (@JudicaelR)
  • src/Symfony/Bundle/SecurityBundle/Resources/config/console.xml (@JudicaelR)
  • src/Symfony/Bundle/SecurityBundle/Resources/config/guard.xml (@JudicaelR)
  • src/Symfony/Bundle/SecurityBundle/Resources/config/security*.xml (@qneyrat)
  • src/Symfony/Bundle/SecurityBundle/Resources/config/templating_twig.xml (@ck-developer)
  • src/Symfony/Bundle/WebProfilerBundle/Resources/config/*.xml (@jschaedl)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK