Skip to content

Commit 8ae2156

Browse files
committed
Deprecate source implementations of the mediaLink method
1 parent 5c35e2b commit 8ae2156

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/framework/src/Foundation/Concerns/ForwardsHyperlinks.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function relativeLink(string $destination): string
2323
return $this->hyperlinks->relativeLink($destination);
2424
}
2525

26+
/** @deprecated Use Hyde::asset() instead. */
2627
public function mediaLink(string $destination): string
2728
{
2829
return $this->hyperlinks->mediaLink($destination);

packages/framework/src/Foundation/Kernel/Hyperlinks.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ public function relativeLink(string $destination): string
9090
/**
9191
* Gets a relative web link to the given file stored in the _site/media folder.
9292
*
93+
* @deprecated Use Hyde::asset() instead.
94+
*
9395
* An exception will be thrown if the file does not exist in the _media directory,
9496
* and the second argument is set to true.
9597
*/

0 commit comments

Comments
 (0)