Skip to content

Commit a1aa08c

Browse files
authored
Fix: Use correct interface for custom extensions
1 parent d990688 commit a1aa08c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/2.6/customization/extensions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ To create an extension, simply create a new class implementing `ExtensionInterfa
1313

1414
```php
1515
use League\CommonMark\Extension\ExtensionInterface;
16-
use League\CommonMark\Environment\ConfigurableEnvironmentInterface;
16+
use League\CommonMark\Environment\EnvironmentBuilderInterface;
1717

1818
final class EmojiExtension implements ExtensionInterface
1919
{
20-
public function register(ConfigurableEnvironmentInterface $environment): void
20+
public function register(EnvironmentBuilderInterface $environment): void
2121
{
2222
$environment
2323
// TODO: Create the EmojiParser, Emoji, and EmojiRenderer classes

0 commit comments

Comments
 (0)