[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

FragmentHandler:: (5 methods):
  __construct()
  addRenderer()
  setRequest()
  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(array $renderers = array()   X-Ref
Constructor.

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.

param: FragmentRendererInterface $renderer A FragmentRendererInterface instance

setRequest(Request $request = null)   X-Ref
Sets the current Request.

param: Request $request The current Request

render($uri, $renderer = 'inline', array $options = array()   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

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
return: string|null The Response content or null when the Response is streamed

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.

param: Response $response A Response instance
return: string|null The Response content or null when the Response is streamed



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1