Skip to content

Commit

Permalink
Call the kernel methods directly
Browse files Browse the repository at this point in the history
Makes the refactor easier as I can click to get to the code location
  • Loading branch information
caendesilva committed Jul 27, 2024
1 parent 0bd90cb commit 244a22e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/framework/src/Facades/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Hyde\Facades;

use Hyde\Hyde;
use Hyde\Support\Filesystem\MediaFile;

use function hyde;
use function file_exists;

/**
Expand All @@ -19,12 +19,12 @@ class Asset
{
public static function get(string $file): string
{
return Hyde::asset($file);
return hyde()->asset($file);
}

public static function mediaLink(string $file): string
{
return Hyde::mediaLink($file).MediaFile::getCacheBustKey($file);
return hyde()->mediaLink($file).MediaFile::getCacheBustKey($file);
}

public static function hasMediaFile(string $file): bool
Expand Down

0 comments on commit 244a22e

Please sign in to comment.