Skip to content

Detect usage of Symfony\Component\Yaml\Yaml::parse and suggest Drupal\Core\Serialization\Yaml::decode #642

@Kingdutch

Description

@Kingdutch

Feature request

When developers work with Yaml the autocomplete from IDEs often suggests Yaml::parse which will give them the Symfony component and they may be unaware of the existence of Drupal's Yaml serialization component which is strictly better.

Developers should prefer calling Drupal\Component\Serialization\Yaml::decode which can delegate to Symfony, but will prefer the PHP Yaml extension if it's available which provides a free performance benefit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions