8000 Replace overriding twig.paths by twig.default_path by l-vo · Pull Request #14135 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Replace overriding twig.paths by twig.default_path #14135

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

Merged
merged 1 commit into from
Oct 22, 2020
Merged

Conversation

l-vo
Copy link
Contributor
@l-vo l-vo commented Aug 27, 2020

Since twig.default_path has been introduced (3.4), it should be a better idea to override it instead of twig.paths for customizing the directory structure (default path is added to paths anyway).

@wouterj
Copy link
Member
wouterj commented Oct 22, 2020

Thank you, Laurent! The difference between default_path and paths is a bit confusing, which is why it took a bit longer to merge this one. But I agree that this article is the use-case of modifying the default path instead of paths. Thanks again!

@wouterj wouterj merged commit 29e448a into symfony:3.4 Oct 22, 2020
@l-vo l-vo deleted the patch-12 branch October 22, 2020 11:36
wouterj added a commit that referenced this pull request Oct 22, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

Some fixes in structure overriding page

* 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.

Commits
-------

b65212f Some fixes in structure overriding:
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.

4 participants
0