mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Modernize to PHP 8.1
This commit is contained in:
parent
ca018c77e3
commit
9e2720cddc
26 changed files with 48 additions and 52 deletions
|
@ -34,20 +34,20 @@ class WallabagExtension extends AbstractExtension implements GlobalsInterface
|
|||
public function getFilters(): array
|
||||
{
|
||||
return [
|
||||
new TwigFilter('removeWww', [$this, 'removeWww']),
|
||||
new TwigFilter('removeScheme', [$this, 'removeScheme']),
|
||||
new TwigFilter('removeSchemeAndWww', [$this, 'removeSchemeAndWww']),
|
||||
new TwigFilter('removeWww', $this->removeWww(...)),
|
||||
new TwigFilter('removeScheme', $this->removeScheme(...)),
|
||||
new TwigFilter('removeSchemeAndWww', $this->removeSchemeAndWww(...)),
|
||||
];
|
||||
}
|
||||
|
||||
public function getFunctions(): array
|
||||
{
|
||||
return [
|
||||
new TwigFunction('count_entries', [$this, 'countEntries']),
|
||||
new TwigFunction('count_tags', [$this, 'countTags']),
|
||||
new TwigFunction('display_stats', [$this, 'displayStats']),
|
||||
new TwigFunction('asset_file_exists', [$this, 'assetFileExists']),
|
||||
new TwigFunction('theme_class', [$this, 'themeClass']),
|
||||
new TwigFunction('count_entries', $this->countEntries(...)),
|
||||
new TwigFunction('count_tags', $this->countTags(...)),
|
||||
new TwigFunction('display_stats', $this->displayStats(...)),
|
||||
new TwigFunction('asset_file_exists', $this->assetFileExists(...)),
|
||||
new TwigFunction('theme_class', $this->themeClass(...)),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue