[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/vendor/symfony/http-kernel/Fragment/ -> FragmentHandler.php (summary)

(no description)

File Size: 114 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FragmentHandler:: (4 methods):
  __construct()
  addRenderer()
  render()
  deliver()


Class: FragmentHandler  - X-Ref

Renders a URI that represents a resource fragment.

This class handles the rendering of resource fragments that are included into
a main resource. The handling of the rendering is managed by specialized renderers.

__construct(RequestStack $requestStack, array $renderers = [], $debug = false)   X-Ref

param: RequestStack                $requestStack The Request stack that controls the lifecycle of requests
param: FragmentRendererInterface[] $renderers    An array of FragmentRendererInterface instances
param: bool                        $debug        Whether the debug mode is enabled or not

addRenderer(FragmentRendererInterface $renderer)   X-Ref
Adds a renderer.


render($uri, $renderer = 'inline', array $options = [])   X-Ref
Renders a URI and returns the Response content.

Available options:

* ignore_errors: true to return an empty string in case of an error

return: string|null The Response content or null when the Response is streamed
param: string|ControllerReference $uri      A URI as a string or a ControllerReference instance
param: string                     $renderer The renderer name
param: array                      $options  An array of options

deliver(Response $response)   X-Ref
Delivers the Response as a string.

When the Response is a StreamedResponse, the content is streamed immediately
instead of being returned.

return: string|null The Response content or null when the Response is streamed



Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1