Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Move the placeholder for assets version in config.yml #891

Closed
wants to merge 2 commits into from
Closed

Move the placeholder for assets version in config.yml #891

wants to merge 2 commits into from

Conversation

kachkaev
Copy link
Contributor

Uncommenting ’#assets_version: SomeVersionScheme’ will cause an exception in Symfony 2.7+ The parameter was moved to framework -> asserts.

Uncommenting ’#assets_version: SomeVersionScheme’ will cause an exception in Symfony 2.7+ The parameter was moved to framework -> asserts.
@@ -32,6 +31,7 @@ framework:
fragments: ~
http_method_override: true
assets: ~
#version: SomeVersionScheme
Copy link
Member

Choose a reason for hiding this comment

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

If the user only uncomment this line, it won't work as he also needs to remove the ~ above. Instead, I would just remove the whole comment above (assets_version)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This makes sense, but hides the fact that the assets can (and should) be versioned. Not sure what is better / worse.

@kachkaev
Copy link
Contributor Author

Docs need updating too as they still refer to the old assets_version:
http://symfony.com/doc/current/reference/configuration/framework.html#ref-framework-assets-version

Perhaps, mentioning assets version bundle there will be useful too.

@Tobion
Copy link
Contributor

Tobion commented Feb 2, 2016

👍

Status: Reviewed

@Tobion
Copy link
Contributor

Tobion commented Feb 2, 2016

Should be merged in 2.7 as that is where this config has been deprecated. But this will conflict currently as assets config in SE has not been added there yet.

@weaverryan
Copy link
Member

👍

@fabpot
Copy link
Member

fabpot commented Feb 22, 2016

Thank you @kachkaev.

fabpot added a commit that referenced this pull request Feb 22, 2016
…hkaev)

This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #891).

Discussion
----------

Move the placeholder for assets version in config.yml

Uncommenting ’#assets_version: SomeVersionScheme’ will cause an exception in Symfony 2.7+ The parameter was moved to framework -> asserts.

Commits
-------

d1cafee Move the placeholder for assets version in config.yml
@fabpot fabpot closed this Feb 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants