Skip to content

Some fixes in structure overriding page #14147

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

Conversation

l-vo
Copy link
Contributor

@l-vo l-vo commented Aug 28, 2020

  • Use default_path instead of paths to change translation directory (default_path is anyway added to paths)
  • Replace var by vendor in the public directory section (I think it's a typo, I don't see why var would be involved when public dir is customized)

In the same way, a #14135 targets 3.4 to use default_path instead of paths for templates.

@l-vo l-vo changed the base branch from master to 4.4 August 28, 2020 20:38
* Use `default_path` instead of `paths` to change translation directory (default_path is anyway added to paths)
* Replace `var` by `vendor` in the public directory section
@l-vo l-vo force-pushed the use_translation_default_path_to_change_directory_structure branch from cc9376c to b65212f Compare August 28, 2020 20:39
@wouterj
Copy link
Member

wouterj commented Oct 22, 2020

Hi @l-vo! I was about to merge this PR, but I'm a bit confused by the target branch. If I understand symfony/symfony#24860 correctly, this option is introduced in Symfony 3.4, is there a reason you submitted this to 4.4?

@l-vo
Copy link
Contributor Author

l-vo commented Oct 22, 2020

Hi @wouterj, you're right, it seems I made a mistake, I think it's because the second fix (var instead of vendor) targets 4.4. I will push a new version for this PR and another to fix default_path in 3.4.

@l-vo
Copy link
Contributor Author

l-vo commented Oct 22, 2020

@wouterj Finally it was not a mistake, I targeted 4.4 because overriding translation directories is not documented in 3.4 ^^

@wouterj
Copy link
Member

wouterj commented Oct 22, 2020

Ah, that makes sense. Thanks for your quick research today & proposing this fix a couple weeks ago, Laurent!

@wouterj wouterj merged commit 2f25a69 into symfony:4.4 Oct 22, 2020
@l-vo l-vo deleted the use_translation_default_path_to_change_directory_structure branch October 23, 2020 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants