| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | final class TwemojiExtension implements ConfigurableExtensionInterface, TypedExtensionInterface |
||
| 15 | { |
||
| 16 | public function configureSchema(ConfigurationBuilderInterface $builder): void |
||
| 17 | { |
||
| 18 | $builder->addSchema('twemoji', Expect::structure([ |
||
| 19 | 'classes' => Expect::arrayOf('string')->default(['twemoji']), |
||
| 20 | 'classPrefix' => Expect::string('twemoji-')->nullable(), |
||
| 21 | 'icon' => Expect::bool(false)->nullable(), |
||
| 22 | 'relativeSvg' => Expect::bool(true), |
||
| 23 | 'size' => Expect::int()->nullable(), |
||
| 24 | 'type' => Expect::anyOf('png', 'svg')->default('svg'), |
||
| 25 | 'urlBase' => Expect::string('https://twemoji.maxcdn.com/v/latest'), |
||
| 26 | ])); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function register(EnvironmentBuilderInterface $environment): void |
||
| 32 | } |
||
| 33 | |||
| 34 | /** @return string[] */ |
||
| 35 | public function registerEmojiTypes(): array |
||
| 40 |