Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class Framework implements FrameworkInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var ConfigurationInterface |
||
17 | */ |
||
18 | private $configuration; |
||
19 | /** |
||
20 | * @var ProviderInterface |
||
21 | */ |
||
22 | private $provider; |
||
23 | |||
24 | /** |
||
25 | * @param ConfigurationInterface $configuration |
||
26 | */ |
||
27 | public function __construct(ConfigurationInterface $configuration) |
||
28 | { |
||
29 | $this->configuration = $configuration; |
||
30 | $this->provider = new Provider(); |
||
31 | foreach ($this->configuration->getLoaders() as $loader) { |
||
32 | $this->provider->registerLoader($loader); |
||
33 | } |
||
34 | } |
||
35 | |||
36 | public function getMappingManager(): MappingManagerInterface |
||
40 | } |
||
41 | } |
||
42 |