Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] use the router context by default for assets #36681

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
May 5, 2020

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented May 4, 2020

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets -
License MIT
Doc PR -

Follows #36651 and #21027

This means assets are going to be configured automatically most of the time. The only case where asset.request_context.base_path is useful is when the webserver still keeps a /index.php/ in URLs. (I'm not sure if the doc should tell ppl to use the parameter, or if we should tell ppl to improve the config of their server...)

@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented May 4, 2020

/cc @ro0NL FYI

@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
@fabpot
Copy link
Member

fabpot commented May 5, 2020

Thank you @nicolas-grekas.

@ThomasLandauer
Copy link
Contributor

asset.request_context.base_path is now just base_path: https://symfony.com/doc/current/reference/configuration/framework.html#base-path

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.

5 participants