public function FragmentHandler::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Fragment/FragmentHandler.php \Symfony\Component\HttpKernel\Fragment\FragmentHandler::__construct()
Constructor.
RequestStack will become required in 3.0.
Parameters
FragmentRendererInterface[] $renderers An array of FragmentRendererInterface instances:
bool $debug Whether the debug mode is enabled or not:
RequestStack|null $requestStack The Request stack that controls the lifecycle of requests:
1 call to FragmentHandler::__construct()
- LazyLoadingFragmentHandler::__construct in vendor/
symfony/ http-kernel/ DependencyInjection/ LazyLoadingFragmentHandler.php - Constructor.
1 method overrides FragmentHandler::__construct()
- LazyLoadingFragmentHandler::__construct in vendor/
symfony/ http-kernel/ DependencyInjection/ LazyLoadingFragmentHandler.php - Constructor.
File
- vendor/
symfony/ http-kernel/ Fragment/ FragmentHandler.php, line 51
Class
- FragmentHandler
- Renders a URI that represents a resource fragment.
Namespace
Symfony\Component\HttpKernel\FragmentCode
public function __construct(array $renderers = array(), $debug = false, RequestStack $requestStack = null) {
$this->requestStack = $requestStack;
foreach ($renderers as $renderer) {
$this
->addRenderer($renderer);
}
$this->debug = $debug;
}