Skip to content

Configuration file path #115

@mpiot

Description

@mpiot

Hi everyone,
I've a little suggest about the configuration path, in my Symfony 5 project the Bundle search config in:

  config/
      packages/
      prod/
          deploy.php <- Here
      routes/
      secrets/
      staging/
          deploy.php <- Here
      bootstrap.php
      bundles.php
      routes.yaml
      services.yaml

It would seem preferable to :

  config/
      packages/
      routes/
      secrets/
      bootstrap.php
      bundles.php
      deploy_prod.php <- Here
      deploy_staging.php <- Here
      routes.yaml
      services.yaml

Or :

  config/
      deployments/ <- Same as packages/
          prod/
              deploy.php <- Here
          staging/
              deploy.php <- Here
      packages/
      routes/
      secrets/
      bootstrap.php
      bundles.php
      routes.yaml
      services.yaml

This is write in EasyCorp\Bundle\EasyDeployBundle\Helper, the default behavior (LEGACY_CONFIG_DIR) is the one I expect, but 3 years ago a change was made to use subdir to put deploy.php inside a subdir. Someone know why this change was made ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions