Documentation

FragmentUriGenerator
in package
implements FragmentUriGeneratorInterface

Generates a fragment URI.

Tags
author

Kévin Dunglas kevin@dunglas.fr

author

Fabien Potencier fabien@symfony.com

Interfaces, Classes and Traits

FragmentUriGeneratorInterface
Interface implemented by rendering strategies able to generate an URL for a fragment.

Table of Contents

$fragmentPath  : mixed
$requestStack  : mixed
$signer  : mixed
__construct()  : mixed
generate()  : string
Generates a fragment URI for a given controller.
checkNonScalar()  : void

Properties

Methods

generate()

Generates a fragment URI for a given controller.

public generate(ControllerReference $controller[, Request|null $request = null ][, bool $absolute = false ][, bool $strict = true ][, bool $sign = true ]) : string
Parameters
$controller : ControllerReference
$request : Request|null = null
$absolute : bool = false

Whether to generate an absolute URL or not

$strict : bool = true

Whether to allow non-scalar attributes or not

$sign : bool = true

Whether to sign the URL or not

Return values
string

checkNonScalar()

private checkNonScalar(array<string|int, mixed> $values) : void
Parameters
$values : array<string|int, mixed>
Return values
void

Search results