diff options
author | Nicolas Lœuillet <nicolas.loeuillet@gmail.com> | 2013-08-02 22:40:51 +0200 |
---|---|---|
committer | Nicolas Lœuillet <nicolas.loeuillet@gmail.com> | 2013-08-02 22:40:51 +0200 |
commit | a4565e88edbc8e3bd092a475469769c86a4c350c (patch) | |
tree | a6a3c935b03a23ff87575c8c315cf8ba78fe68c2 /inc/Twig/Extensions/Gettext/Routing | |
parent | f6c9baab3efeec1d0efa151e276fc08d5b58f9e9 (diff) | |
download | wallabag-a4565e88edbc8e3bd092a475469769c86a4c350c.tar.gz wallabag-a4565e88edbc8e3bd092a475469769c86a4c350c.tar.zst wallabag-a4565e88edbc8e3bd092a475469769c86a4c350c.zip |
add Twig & refactor poche
Diffstat (limited to 'inc/Twig/Extensions/Gettext/Routing')
-rw-r--r-- | inc/Twig/Extensions/Gettext/Routing/Generator/UrlGenerator.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/inc/Twig/Extensions/Gettext/Routing/Generator/UrlGenerator.php b/inc/Twig/Extensions/Gettext/Routing/Generator/UrlGenerator.php new file mode 100644 index 00000000..9e3431bd --- /dev/null +++ b/inc/Twig/Extensions/Gettext/Routing/Generator/UrlGenerator.php | |||
@@ -0,0 +1,39 @@ | |||
1 | <?php | ||
2 | |||
3 | /** | ||
4 | * This file is part of the Twig Gettext utility. | ||
5 | * | ||
6 | * (c) Саша Стаменковић <umpirsky@gmail.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Twig\Gettext\Routing\Generator; | ||
13 | |||
14 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | ||
15 | use Symfony\Component\Routing\RequestContext; | ||
16 | |||
17 | /** | ||
18 | * Dummy url generator. | ||
19 | * | ||
20 | * @author Саша Стаменковић <umpirsky@gmail.com> | ||
21 | */ | ||
22 | class UrlGenerator implements UrlGeneratorInterface | ||
23 | { | ||
24 | protected $context; | ||
25 | |||
26 | public function generate($name, $parameters = array(), $absolute = false) | ||
27 | { | ||
28 | } | ||
29 | |||
30 | public function getContext() | ||
31 | { | ||
32 | return $this->context; | ||
33 | } | ||
34 | |||
35 | public function setContext(RequestContext $context) | ||
36 | { | ||
37 | $this->context = $context; | ||
38 | } | ||
39 | } | ||