diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-20 14:11:26 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-20 14:11:26 +0100 |
commit | 79e051a1f216704752e05f5174633abf20dde582 (patch) | |
tree | e55b7f46aad7c8df42534e638b25cdbc258a3c40 /src/Wallabag/Wallabag/Template.php | |
parent | 97a2dd74c872891b694bff0485a0fcc9a82a09e4 (diff) | |
download | wallabag-79e051a1f216704752e05f5174633abf20dde582.tar.gz wallabag-79e051a1f216704752e05f5174633abf20dde582.tar.zst wallabag-79e051a1f216704752e05f5174633abf20dde582.zip |
restructure folders
Diffstat (limited to 'src/Wallabag/Wallabag/Template.php')
-rw-r--r-- | src/Wallabag/Wallabag/Template.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Wallabag/Wallabag/Template.php b/src/Wallabag/Wallabag/Template.php index e8a6daa3..d0fc9b07 100644 --- a/src/Wallabag/Wallabag/Template.php +++ b/src/Wallabag/Wallabag/Template.php | |||
@@ -10,6 +10,13 @@ | |||
10 | 10 | ||
11 | namespace Wallabag\Wallabag; | 11 | namespace Wallabag\Wallabag; |
12 | 12 | ||
13 | use \Twig_Environment; | ||
14 | use \Session; | ||
15 | use \Twig_Loader_Chain; | ||
16 | use \Twig_Loader_Filesystem; | ||
17 | use \Twig_Extensions_Extension_I18n; | ||
18 | use \Twig_SimpleFilter; | ||
19 | |||
13 | class Template extends Twig_Environment | 20 | class Template extends Twig_Environment |
14 | { | 21 | { |
15 | protected $wallabag; | 22 | protected $wallabag; |
@@ -117,11 +124,11 @@ class Template extends Twig_Environment | |||
117 | $this->addExtension(new Twig_Extensions_Extension_I18n()); | 124 | $this->addExtension(new Twig_Extensions_Extension_I18n()); |
118 | 125 | ||
119 | # filter to display domain name of an url | 126 | # filter to display domain name of an url |
120 | $filter = new Twig_SimpleFilter('getDomain', 'Tools::getDomain'); | 127 | $filter = new Twig_SimpleFilter('getDomain', 'Wallabag\\Wallabag\\Tools::getDomain'); |
121 | $this->addFilter($filter); | 128 | $this->addFilter($filter); |
122 | 129 | ||
123 | # filter for reading time | 130 | # filter for reading time |
124 | $filter = new Twig_SimpleFilter('getReadingTime', 'Tools::getReadingTime'); | 131 | $filter = new Twig_SimpleFilter('getReadingTime', 'Wallabag\\Wallabag\\Tools::getReadingTime'); |
125 | $this->addFilter($filter); | 132 | $this->addFilter($filter); |
126 | } | 133 | } |
127 | 134 | ||