Skip to content

Commit 9612a99

Browse files
Add ServerRequestInterface to user function (#1556)
Releases: main, 13.4, 12.4 Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com>
1 parent 37ea6ff commit 9612a99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/ContentObjects/UserAndUserInt/_Hostname.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@
44

55
namespace Vendor\SitePackage\UserFunctions;
66

7+
use Psr\Http\Message\ServerRequestInterface;
8+
79
final class Hostname
810
{
911
/**
1012
* Return standard host name for the local machine
1113
*
1214
* @param string Empty string (no content to process)
1315
* @param array TypoScript configuration
16+
* @param ServerRequestInterface The current PSR-7 request object
1417
* @return string HTML result
1518
*/
16-
public function getHostname(string $content, array $conf): string
19+
public function getHostname(string $content, array $conf, ServerRequestInterface $request): string
1720
{
1821
return gethostname() ?: '';
1922
}

0 commit comments

Comments
 (0)