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