Skip to content

Commit

Permalink
Remove now unused current_url() twig function
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Feb 7, 2024
1 parent f3da4b9 commit 00dad89
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/Services/TwigBridge/Extensions/Misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function getFunctions(): array
new Twig_SimpleFunction('declination', [Declination::class, 'format']),
new Twig_SimpleFunction('sortable', [$this, 'sortable'], ['is_safe' => ['html']]),
new Twig_SimpleFunction('is_url', [$this, 'isUrl'], ['is_safe' => ['html']]),
new Twig_SimpleFunction('current_url', [$this, 'currentUrl']),
];
}

Expand Down Expand Up @@ -102,12 +101,4 @@ public function isUrl($url)
{
return filter_var($url, FILTER_VALIDATE_URL);
}

/**
* @return string
*/
public function currentUrl(): string
{
return request()->fullUrl();
}
}

0 comments on commit 00dad89

Please sign in to comment.