| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | final class AutolinkExtension implements ConfigurableExtensionInterface |
||
| 22 | { |
||
| 23 | 182 | public function configureSchema(ConfigurationBuilderInterface $builder): void |
|
| 24 | { |
||
| 25 | 182 | $builder->addSchema('autolink', Expect::structure([ |
|
| 26 | 182 | 'allowed_protocols' => Expect::listOf('string')->default(['http', 'https', 'ftp'])->mergeDefaults(false), |
|
| 27 | 182 | 'default_protocol' => Expect::string()->default('http'), |
|
| 28 | 182 | ])); |
|
| 29 | } |
||
| 30 | |||
| 31 | 186 | public function register(EnvironmentBuilderInterface $environment): void |
|
| 37 | 186 | )); |
|
| 38 | } |
||
| 40 |