| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class TwigDependencyProvider extends AbstractProvider |
||
| 16 | { |
||
| 17 | public const PATH_PROVIDER_COLLECTION = 'path.provider.collection'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param \Xervice\Core\Dependency\DependencyProviderInterface $dependencyProvider |
||
| 21 | */ |
||
| 22 | 2 | public function handleDependencies(DependencyProviderInterface $dependencyProvider): void |
|
| 23 | { |
||
| 24 | $dependencyProvider[self::PATH_PROVIDER_COLLECTION] = function () { |
||
| 25 | 2 | return new PathCollection( |
|
| 26 | 2 | $this->getPathProviderList() |
|
| 27 | ); |
||
| 28 | }; |
||
| 29 | 2 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return \Xervice\Twig\Business\Path\PathProviderInterface[] |
||
| 33 | */ |
||
| 34 | 2 | protected function getPathProviderList(): array |
|
| 37 | } |
||
| 38 | } |