Skip to content

Commit a29b312

Browse files
authored
Merge pull request #16 from PackageFactory/2.0
2.0
2 parents f33c54a + 1529b88 commit a29b312

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Classes/Fusion/UriServiceInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ interface UriServiceInterface
1616
/**
1717
* @param TraversableNodeInterface $documentNode
1818
* @param boolean $absolute
19+
* @param string|null $format
1920
* @return Uri
2021
*/
21-
public function getNodeUri(TraversableNodeInterface $documentNode, bool $absolute = false): Uri;
22+
public function getNodeUri(TraversableNodeInterface $documentNode, bool $absolute = false, ?string $format = null): Uri;
2223

2324
/**
2425
* @param string $packageKey

Classes/Infrastructure/UriService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ final class UriService implements UriServiceInterface
5757
/**
5858
* @param TraversableNodeInterface $documentNode
5959
* @param bool $absolute
60+
* @param string|null $format
6061
* @return Uri
6162
* @throws Http\Exception
6263
* @throws Mvc\Routing\Exception\MissingActionNameException
@@ -65,9 +66,9 @@ final class UriService implements UriServiceInterface
6566
* @throws \Neos\Flow\Security\Exception
6667
* @throws \Neos\Neos\Exception
6768
*/
68-
public function getNodeUri(TraversableNodeInterface $documentNode, bool $absolute = false): Uri
69+
public function getNodeUri(TraversableNodeInterface $documentNode, bool $absolute = false, ?string $format = null): Uri
6970
{
70-
return new Uri($this->linkingService->createNodeUri($this->getControllerContext(), $documentNode, null, null, $absolute));
71+
return new Uri($this->linkingService->createNodeUri($this->getControllerContext(), $documentNode, null, $format, $absolute));
7172
}
7273

7374
/**

0 commit comments

Comments
 (0)