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

Skip to content

[HttpKernel] HttpRenderer fix + enhancements #6801

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

Closed
wants to merge 2 commits into from

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Jan 18, 2013

Q A
Bug fix? yes, 2nd commit
New feature? yes, interfaces
BC breaks? yes, but this is could be considered as a bug fix (private -> protected)
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR User facing API is the same

*
* @author Fabien Potencier <[email protected]>
*/
interface HttpContentRendererInterface
Copy link
Member

Choose a reason for hiding this comment

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

Why is it useful?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to implement without extending, what do you think ?

Copy link
Member

Choose a reason for hiding this comment

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

I did not create this interface because I don't see why you would want to have another implementation. And you don't need an interface for extending anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not create this interface because I don't see why you would want to have another implementation.

Why not ? (Sorry I can not think of any better reply)

And you don't need an interface for extending anyway.

If you implement this is an other way, you would probably not be interested to extend ?

But I can revert if you prefer (both ?)

@fabpot
Copy link
Member

fabpot commented Jan 18, 2013

Just for the sake of the argument, there is no BC break as these classes were not released yet in any stable releases.

*
* @return array
*
* @deprecated fixOptions will be removed in 2.3
Copy link
Member

Choose a reason for hiding this comment

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

Then should it really be part of the interface ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. I think it is used by external classes (it's public)

@vicb
Copy link
Contributor Author

vicb commented Jan 18, 2013

You are right, UTs are often helpful ! I'll add one for the check.

@vicb
Copy link
Contributor Author

vicb commented Jan 18, 2013

Well in fact I don't know how/if I can test this !

vicb added a commit that referenced this pull request Feb 1, 2013
@fabpot
Copy link
Member

fabpot commented Feb 1, 2013

I've cherry-picked the second commit

@fabpot fabpot closed this Feb 1, 2013
fabpot added a commit that referenced this pull request Feb 4, 2013
* 2.2:
  fixed regression in the Finder component (it was possible to use it without using exec before, closes #6357)
  fixed a circular call (closes #6864)
  typo
  [Security] [Tests] added unit tests for the UserPasswordValidator class and made the validator service for the UserPassword constraint configurable.
  fixed wrong indentation
  tweaked previous commit
  [HttpKernel] Fix the URI signer (closes #6801)
  Add Arabic translations.
  [HttpKernel] fixed regression when rendering an inline controller and passing some objects  (closes #6822)
  [FrameworkBundle] fixed typo
  renamed some classes and Twig functions to more descriptive names (refs #6871)
  Classcollectionloader: fix traits + enhancements
  Fix a deprecated method call in the tests
  Update `composer.json` files: - to allow versions ~2.2 (>=2.2,<3.0) of Doctrine DBAL, ORM & Common - fixed Propel1 versions difference between main and bridge files - fixed Twig versions difference between main and bridge files - to allow versions ~1.11 (>=1.11,<2.0) of Twig - fixed Locale ext-intl version to accept all, not non-existing version
  Correct comment in NativeSessionStorage regarding session.save_handler
  [Security] Add PHPDoc to AuthenticationEvents
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