InlineFragmentRenderer

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
__construct(HttpKernelInterface $kernel, EventDispatcherInterface $dispatcher = null)

Constructor.

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.

Details

setFragmentPath(string $path)

Sets the fragment path that triggers the fragment listener.

Parameters

string $path The path

See also

FragmentListener

__construct(HttpKernelInterface $kernel, EventDispatcherInterface $dispatcher = null)

Constructor.

Parameters

HttpKernelInterface $kernel A HttpKernelInterface instance
EventDispatcherInterface $dispatcher A EventDispatcherInterface instance

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

string getName()

Gets the name of the strategy.

Return Value

string The strategy name

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部