Skip to content

Commit

Permalink
Merge pull request #1189 from hydephp/update-MarkdownFileParser-to-us…
Browse files Browse the repository at this point in the history
…e-the-Filesystem-facade

Update MarkdownFileParser to use the Filesystem facade
  • Loading branch information
caendesilva committed Mar 3, 2023
2 parents 52e2a96 + b30d1d3 commit 1f12aba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Hyde\Framework\Actions;

use Hyde\Hyde;
use Hyde\Facades\Filesystem;
use Hyde\Markdown\Models\MarkdownDocument;
use Spatie\YamlFrontMatter\YamlFrontMatter;

Expand All @@ -27,7 +27,7 @@ class MarkdownFileParser

public function __construct(string $localFilepath)
{
$stream = file_get_contents(Hyde::path($localFilepath));
$stream = Filesystem::getContents($localFilepath);

// Check if the file has Front Matter.
if (str_starts_with($stream, '---')) {
Expand Down

0 comments on commit 1f12aba

Please sign in to comment.