8000 Allow .php config files (and others) to be loaded in the Kernel by default. by sanderdlm · Pull Request #913 · symfony/recipes · GitHub
[go: up one dir, main page]

Skip to content

Allow .php config files (and others) to be loaded in the Kernel by default. #913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

sanderdlm
Copy link
Contributor
@sanderdlm sanderdlm commented Mar 22, 2021
Q A
License MIT
Doc issue/PR symfony/symfony-docs#...

I'd like to suggest a partial rollback of this PR by @nicolas-grekas. Since both Symfony internally and the community are moving in the direction of PHP configs, I feel like it'd be nice to allow these out-of-the-box when using the framework bundle.

Right now if you switch to PHP config files, either manually or by using a tool, you end up with a broken Symfony app. If we import .php config files in the default kernel, this would work straight away.

My apologies if this PR is misplaced in any way, it is my first attempt to contribute and I couldn't quite figure out which repo I had to submit the PR to.

Copy link
@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request does not pass validation.

Copy link
@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

Copy link
@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

@nicolas-grekas
Copy link
Member

I think we're not ready to make this move. Yaml is still the best format in packages/
Tomas is doing nice experiments, but the drawbacks are still huge and we're still looking for a smoother way.

👎 on my side sorry.

@Nyholm
Copy link
Member
Nyholm commented Mar 23, 2021

Thank you.
I think this PR is correct, but the timing is not right as Nicolas says, but could we maybe find a compromise? Could we add a comment like:

$container->import('../config/{packages}/*.yaml');
// Uncomment this line to allow configuration with PHP files
// $container->import('../config/{packages}/*.php');

@nicolas-grekas
Copy link
Member

could we maybe find a compromise? Could we add a comment like:

We try to keep recipes as clean as possible, that's why I'd prefer not...

@Nyholm
Copy link
Member
Nyholm commented Mar 23, 2021

Hm. Okey. @dreadnip. I'll close this PR now. Could you open a similar PR in 5-6 months? I think we are more mature with the idea then. It is also a few issues we should take care of before fully embracing php config.

I appreciate that you took your time to make this PR. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0