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

Skip to content

fix url generator signature using the constant for reference type #154

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 20, 2015
Merged

fix url generator signature using the constant for reference type #154

merged 1 commit into from
Oct 20, 2015

Conversation

Tobion
Copy link

@Tobion Tobion commented Oct 19, 2015

The UrlGeneratorInterface::generate method uses a "referenceType" instead of "absolute" parameter since symfony version 2.2. The important part is to use the constants as the old values of those are deprecated in 2.8: symfony/symfony#16276

I don't know if 1.3 is the correct target branch. If it should be applied somewhere else, please do so.

@@ -24,7 +24,7 @@ class ContentAwareGeneratorTest extends CmfUnitTestCase
protected $provider;

/**
* @var ContentAwareGenerator
* @var TestableContentAwareGenerator
Copy link
Author

Choose a reason for hiding this comment

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

otherwise the IDE complains that a protected method is used publicly

@dbu
Copy link
Member

dbu commented Oct 20, 2015

thanks a lot!

dbu added a commit that referenced this pull request Oct 20, 2015
fix url generator signature using the constant for reference type
@dbu dbu merged commit a4e7540 into symfony-cmf:1.3 Oct 20, 2015
@lsmith77 lsmith77 removed the wip/poc label Oct 20, 2015
@Tobion Tobion deleted the fix-generate-reference-type branch October 20, 2015 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants