Skip to content
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

[FrameworkBundle] Use proper class to fetch $versionStrategy property #17298

Closed
wants to merge 1 commit into from
Closed

[FrameworkBundle] Use proper class to fetch $versionStrategy property #17298

wants to merge 1 commit into from

Conversation

dosten
Copy link
Contributor

@dosten dosten commented Jan 7, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #17259
License MIT

This is a replacement of #17260


$v = new \ReflectionProperty($package, 'versionStrategy');
while ('Symfony\Component\Asset\Package' !== $class->getName()) {
Copy link
Member

Choose a reason for hiding this comment

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

same comment than in the original PR: why can't we just do $v = new \ReflectionProperty('Symfony\Component\Asset\Package', 'versionStrategy'); instead of the while loop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems reasonable, I'll try your proposal.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It works! :)

@fabpot
Copy link
Member

fabpot commented Jan 7, 2016

Thank you @dosten.

fabpot added a commit that referenced this pull request Jan 7, 2016
…gy property (dosten)

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

Discussion
----------

[FrameworkBundle] Use proper class to fetch $versionStrategy property

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17259
| License       | MIT

This is a replacement of #17260

Commits
-------

e38fa13 Use proper class to fetch $versionStrategy property
@fabpot fabpot closed this Jan 7, 2016
@dosten dosten deleted the framework-bundle/fix-legacy-get-url branch January 7, 2016 18:02
This was referenced Jan 14, 2016
@fabpot fabpot mentioned this pull request Feb 3, 2016
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.

None yet

5 participants