diff options
Diffstat (limited to 'inc/3rdparty/Twig/Gettext/Routing')
-rw-r--r-- | inc/3rdparty/Twig/Gettext/Routing/Generator/UrlGenerator.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/inc/3rdparty/Twig/Gettext/Routing/Generator/UrlGenerator.php b/inc/3rdparty/Twig/Gettext/Routing/Generator/UrlGenerator.php new file mode 100644 index 00000000..9e3431bd --- /dev/null +++ b/inc/3rdparty/Twig/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 | } | ||