symfony/symfony — pull request #6925 by fabpot (2013-01-31 09:45:34+00:00)
Title: renamed some classes and Twig functions to more descriptive names (refs #6871)

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #6871
| License | MIT
| Doc PR | not yet

Todo:

- [ ] update the docs

In #6871, @kriswallsmith wondered if the names used for the ESI/HIncludes sub-framework were meaningful enough.

I agree that this was not the case and I propose to remove the notion of **sub-requests** in favor of **fragments**. This sub-framework is a way to render fragments of a resource (the fact that it's done via another request is an implementation detail).

With that decision, all names can be renamed and are probably more meaningful. Some examples:

* `HttpContentRenderer` -> `FragmentRenderer`
* `RouterProxyListener` -> `FragmentListener`
* `render_esi` -> `esi_fragment` (Twig function)
* `router_proxy` -> `fragments` (configuration entry)
* `DefaultRenderingStrategy` -> `InlineFragmentRenderingStrategy`