1 | <?php |
||
12 | class AgnosticUrlGenerator implements UrlGeneratorInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var UrlGeneratorInterface |
||
16 | */ |
||
17 | protected $urlGenerator; |
||
18 | |||
19 | /** |
||
20 | * @var RequestContext |
||
21 | */ |
||
22 | protected $context; |
||
23 | |||
24 | /** |
||
25 | * Construct |
||
26 | * |
||
27 | * @param UrlGeneratorInterface $urlGenerator |
||
28 | */ |
||
29 | public function __construct(UrlGeneratorInterface $urlGenerator) |
||
34 | |||
35 | /** |
||
36 | * @see RequestContextAwareInterface::setContext() |
||
37 | */ |
||
38 | public function setContext(RequestContext $context) |
||
47 | |||
48 | /** |
||
49 | * @see RequestContextAwareInterface::getContext() |
||
50 | */ |
||
51 | public function getContext() |
||
55 | |||
56 | /** |
||
57 | * @see UrlGeneratorInterface::generate() |
||
58 | */ |
||
59 | public function generate($name, $parameters = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH) |
||
71 | } |
||
72 |