FragmentUriGenerator
in package
implements
FragmentUriGeneratorInterface
Generates a fragment URI.
Tags
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
$fragmentPath
private
mixed
$fragmentPath
$requestStack
private
mixed
$requestStack
$signer
private
mixed
$signer
Methods
__construct()
public
__construct(string $fragmentPath[, UriSigner|null $signer = null ][, RequestStack|null $requestStack = null ]) : mixed
Parameters
- $fragmentPath : string
- $signer : UriSigner|null = null
- $requestStack : RequestStack|null = null
Return values
mixed —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>