1 | <?php |
||
8 | class UrlGeneratorRegistry |
||
9 | { |
||
10 | const DEFAULT_URL_GENERATOR_KEY = 'default'; |
||
11 | |||
12 | private $urlGenerators; |
||
13 | |||
14 | public function __construct(UrlGeneratorInterface $defaultUrlGenerator = null) |
||
24 | |||
25 | /** |
||
26 | * @param string|null $name If null it will return the default url generator |
||
27 | * |
||
28 | * @return UrlGeneratorInterface |
||
29 | */ |
||
30 | public function get($name = null) |
||
48 | |||
49 | /** |
||
50 | * @param string|null $name |
||
51 | * @param UrlGeneratorInterface $urlGenerator |
||
52 | */ |
||
53 | public function set($name, UrlGeneratorInterface $urlGenerator) |
||
61 | |||
62 | /** |
||
63 | * @return boolean |
||
64 | */ |
||
65 | public function hasGenerators() |
||
69 | } |
||
70 |