Skip to content

Commit 06fd95a

Browse files
committed
Replace method annotation with method forward
1 parent 82c7600 commit 06fd95a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/framework/src/Hyde.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
* @method static string sitePath(string $path = '')
3737
* @method static string formatLink(string $destination)
3838
* @method static string relativeLink(string $destination)
39-
* @method static string mediaLink(string $destination, bool $validate = false)
4039
* @method static string asset(string $name)
4140
* @method static string url(string $path = '')
4241
* @method static Route|null route(string $key)

packages/framework/src/Support/V1Compatibility.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Hyde\Support;
66

7+
use Hyde\Foundation\HydeKernel;
78
use JetBrains\PhpStorm\Deprecated;
89
use Hyde\Support\Filesystem\MediaFile;
910

@@ -35,4 +36,9 @@ public static function siteMediaPath(string $path = ''): string
3536
{
3637
return MediaFile::outputPath($path);
3738
}
39+
40+
public static function mediaLink(string $destination, bool $validate = false): string
41+
{
42+
return HydeKernel::getInstance()->mediaLink($destination, $validate);
43+
}
3844
}

0 commit comments

Comments
 (0)