Router
in package
Table of Contents
Properties
- $fqsenUrlGenerator : ClassBasedFqsenUrlGenerator
- $slugger : SluggerInterface
- $urlGenerator : UrlGeneratorInterface
Methods
- __construct() : mixed
- generate() : string
- generateUrlForDescriptor() : string
- removeFileExtensionFromPath() : string
- Removes the file extension from the provided path.
- slugifyNameBasedOnType() : string
Properties
$fqsenUrlGenerator read-only
private
ClassBasedFqsenUrlGenerator
$fqsenUrlGenerator
$slugger read-only
private
SluggerInterface
$slugger
$urlGenerator read-only
private
UrlGeneratorInterface
$urlGenerator
Methods
__construct()
public
__construct() : mixed
generate()
public
generate(ElementInterface|Descriptor|Fqsen|UriInterface $node) : string
Parameters
- $node : ElementInterface|Descriptor|Fqsen|UriInterface
Return values
stringgenerateUrlForDescriptor()
private
generateUrlForDescriptor(string $type, string $fqsen[, string $fragment = '' ]) : string
Parameters
- $type : string
- $fqsen : string
- $fragment : string = ''
Return values
stringremoveFileExtensionFromPath()
Removes the file extension from the provided path.
private
removeFileExtensionFromPath(string $path) : string
Parameters
- $path : string
Return values
stringslugifyNameBasedOnType()
private
slugifyNameBasedOnType(string $type, string $name) : string
Parameters
- $type : string
- $name : string