InlineFragmentRenderer
class InlineFragmentRenderer extends RoutableFragmentRenderer
Implements the inline rendering strategy where the Request is rendered by the current HTTP kernel.
Methods
| setFragmentPath(string $path) Sets the fragment path that triggers the fragment listener. | from RoutableFragmentRenderer | |
| string | generateFragmentUri(ControllerReference $reference, Request $request, bool $absolute = false, bool $strict = true) Generates a fragment URI for a given controller. | from RoutableFragmentRenderer |
| __construct(HttpKernelInterface $kernel, EventDispatcherInterface $dispatcher = null) | ||
| Response | render(string|ControllerReference $uri, Request $request, array $options = array()) Renders a URI and returns the Response content. | |
| createSubRequest($uri, Request $request) | ||
| string | getName() Gets the name of the strategy. |
Details
setFragmentPath(string $path)
Sets the fragment path that triggers the fragment listener.
Parameters
| string | $path | The path |
See also
| FragmentListener |
protected string generateFragmentUri(ControllerReference $reference, Request $request, bool $absolute = false, bool $strict = true)
Generates a fragment URI for a given controller.
Parameters
| ControllerReference | $reference | A ControllerReference instance |
| Request | $request | A Request instance |
| bool | $absolute | Whether to generate an absolute URL or not |
| bool | $strict | Whether to allow non-scalar attributes or not |
Return Value
| string | A fragment URI |
__construct(HttpKernelInterface $kernel, EventDispatcherInterface $dispatcher = null)
Parameters
| HttpKernelInterface | $kernel | |
| EventDispatcherInterface | $dispatcher |
Response render(string|ControllerReference $uri, Request $request, array $options = array())
Renders a URI and returns the Response content.
Parameters
| string|ControllerReference | $uri | A URI as a string or a ControllerReference instance |
| Request | $request | A Request instance |
| array | $options | An array of options |
Return Value
| Response | A Response instance |
protected createSubRequest($uri, Request $request)
Parameters
| $uri | ||
| Request | $request |
string getName()
Gets the name of the strategy.
Return Value
| string | The strategy name |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.html