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