1 | <?php |
||
5 | class ProviderResolver implements ProviderResolverInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var ProviderInterface[] An array of ProviderInterface objects |
||
9 | */ |
||
10 | private $providers = array(); |
||
11 | |||
12 | /** |
||
13 | * Constructor. |
||
14 | * |
||
15 | * @param ProviderInterface[] $providers An array of providers |
||
16 | */ |
||
17 | 210 | public function __construct(array $providers = array()) |
|
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 210 | public function resolve($url, array $params = array()) |
|
37 | |||
38 | /** |
||
39 | * Adds a provider. |
||
40 | * |
||
41 | * @param ProviderInterface $provider A ProviderInterface instance |
||
42 | */ |
||
43 | 208 | public function addProvider(ProviderInterface $provider) |
|
47 | |||
48 | /** |
||
49 | * Returns the registered providers. |
||
50 | * |
||
51 | * @return ProviderInterface[] An array of ProviderInterface instances |
||
52 | */ |
||
53 | 4 | public function getProviders() |
|
57 | } |
||
58 |