]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Twig: add removeSchemeAndWww filter
authorKevin Decherf <kevin@kdecherf.com>
Sat, 9 Sep 2017 17:34:41 +0000 (19:34 +0200)
committerKevin Decherf <kevin@kdecherf.com>
Sun, 19 Nov 2017 14:02:11 +0000 (15:02 +0100)
commite50e45d6fa64aea8b6b96f60073fb36960322aa8
tree5f80e99f7e5e34e8ac8f00510a55b7e59f1cf23e
parent03b020eb205a052b3a09f94e316c3b6b48607103
Twig: add removeSchemeAndWww filter

This twig filter removes scheme (only http and https are supported) and
pass the result to removeWww filter to also remove 'www.' at the
beginning of an url.

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
src/Wallabag/CoreBundle/Twig/WallabagExtension.php
tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php