class HIncludeFragmentRenderer extends RoutableFragmentRenderer
Implements the Hinclude rendering strategy.
setFragmentPath(string $path) Sets the fragment path that triggers the fragment listener. | from RoutableFragmentRenderer | |
__construct(EngineInterface|Environment $templating = null, UriSigner $signer = null, string $globalDefaultTemplate = null, string $charset = 'utf-8') | ||
setTemplating(EngineInterface|Environment|null $templating) Sets the templating engine to use to render the default content. | ||
bool | hasTemplating() Checks if a templating engine has been set. | |
Response | render(string|ControllerReference $uri, Request $request, array $options = array()) Renders a URI and returns the Response content. | |
string | getName() Gets the name of the strategy. |
Sets the fragment path that triggers the fragment listener.
string | $path | The path |
FragmentListener |
EngineInterface|Environment | $templating | An EngineInterface or a Twig instance |
UriSigner | $signer | A UriSigner instance |
string | $globalDefaultTemplate | The global default content (it can be a template name or the content) |
string | $charset |
Sets the templating engine to use to render the default content.
EngineInterface|Environment|null | $templating | An EngineInterface or an Environment instance |
InvalidArgumentException |
Checks if a templating engine has been set.
bool | true if the templating engine has been set, false otherwise |
Renders a URI and returns the Response content.
string|ControllerReference | $uri | A URI as a string or a ControllerReference instance |
Request | $request | A Request instance |
array | $options | An array of options |
Response | A Response instance |
Gets the name of the strategy.
string | The strategy name |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.html