Skip to content

Commit

Permalink
Makes class path explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellehmkuhl committed Sep 8, 2023
1 parent 94d27cf commit 092d401
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Directives/SessionToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Osiset\ShopifyApp\Directives;

use Illuminate\Http\Request;

/**
* Provides a Blade directive for session tokens.
*/
Expand All @@ -14,6 +16,6 @@ class SessionToken
*/
public function __invoke(): string
{
return '<input type="hidden" class="session-token" name="token" value="" /><input type="hidden" name="host" value="'.str_replace('"', htmlentities('"'), e(\Request::get('host'))).'">';
return '<input type="hidden" class="session-token" name="token" value="" /><input type="hidden" name="host" value="'.str_replace('"', htmlentities('"'), e(Request::get('host'))).'">';
}
}

0 comments on commit 092d401

Please sign in to comment.