FragmentUriGenerator
in package
implements
FragmentUriGeneratorInterface
FinalYes
Generates a fragment URI.
Tags
Table of Contents
Interfaces
- FragmentUriGeneratorInterface
- Interface implemented by rendering strategies able to generate an URL for a fragment.
Properties
- $fragmentPath : string
- $requestStack : mixed
- $signer : mixed
Methods
- __construct() : mixed
- generate() : string
- Generates a fragment URI for a given controller.
- checkNonScalar() : void
Properties
$fragmentPath
private
string
$fragmentPath
$requestStack
private
mixed
$requestStack
$signer
private
mixed
$signer
Methods
__construct()
public
__construct(string $fragmentPath[, UriSigner $signer = null ][, RequestStack $requestStack = null ]) : mixed
Parameters
- $fragmentPath : string
- $signer : UriSigner = null
- $requestStack : RequestStack = null
generate()
Generates a fragment URI for a given controller.
public
generate(ControllerReference $controller[, Request $request = null ][, bool $absolute = false ][, bool $strict = true ][, bool $sign = true ]) : string
Parameters
- $controller : ControllerReference
- $request : Request = 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
stringcheckNonScalar()
private
checkNonScalar(array<string|int, mixed> $values) : void
Parameters
- $values : array<string|int, mixed>