Skip to content

[config:export] Warnings on language/XX directories #3862

@Omegadela

Description

@Omegadela

Problem/Motivation

When using Drupal Console to export configuration made in development environments there should be no unnecessary warnings.

How to reproduce

  • Drupal version : 8.5.1
  • Console version : 1.8.0
  • Run drupal config:export command on a site with multiple languages and a configuration already exported with the same command.
    PS: using Lando here, but not relevant for the issue.

image

  • Known workarounds : manually delete sync folder before the command.

Solution

Use Symfony's FileSystem component for unlink and mkdir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions