| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class XgcCarbonExtension extends Extension |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param array $configs |
||
| 18 | * @param ContainerBuilder $container |
||
| 19 | * |
||
| 20 | * @throws Exception |
||
| 21 | */ |
||
| 22 | 1 | public function load(array $configs, ContainerBuilder $container): void |
|
| 23 | { |
||
| 24 | 1 | if (!$container->hasParameter('encoding')) { |
|
| 25 | 1 | $container->setParameter('encoding', 'utf8'); |
|
| 26 | } |
||
| 27 | 1 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | 1 | public function getAlias(): string |
|
| 35 | } |
||
| 36 | } |
||
| 37 |