Skip to content

Commit

Permalink
Merge pull request #16 from PackageFactory/2.0
Browse files Browse the repository at this point in the history
2.0
  • Loading branch information
nezaniel authored Jul 13, 2021
2 parents f33c54a + 1529b88 commit a29b312
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Classes/Fusion/UriServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ interface UriServiceInterface
/**
* @param TraversableNodeInterface $documentNode
* @param boolean $absolute
* @param string|null $format
* @return Uri
*/
public function getNodeUri(TraversableNodeInterface $documentNode, bool $absolute = false): Uri;
public function getNodeUri(TraversableNodeInterface $documentNode, bool $absolute = false, ?string $format = null): Uri;

/**
* @param string $packageKey
Expand Down
5 changes: 3 additions & 2 deletions Classes/Infrastructure/UriService.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ final class UriService implements UriServiceInterface
/**
* @param TraversableNodeInterface $documentNode
* @param bool $absolute
* @param string|null $format
* @return Uri
* @throws Http\Exception
* @throws Mvc\Routing\Exception\MissingActionNameException
Expand All @@ -65,9 +66,9 @@ final class UriService implements UriServiceInterface
* @throws \Neos\Flow\Security\Exception
* @throws \Neos\Neos\Exception
*/
public function getNodeUri(TraversableNodeInterface $documentNode, bool $absolute = false): Uri
public function getNodeUri(TraversableNodeInterface $documentNode, bool $absolute = false, ?string $format = null): Uri
{
return new Uri($this->linkingService->createNodeUri($this->getControllerContext(), $documentNode, null, null, $absolute));
return new Uri($this->linkingService->createNodeUri($this->getControllerContext(), $documentNode, null, $format, $absolute));
}

/**
Expand Down

0 comments on commit a29b312

Please sign in to comment.