Skip to content

Commit 64cba7f

Browse files
authored
Merge pull request #1063 from CharrafiMed/patch-1
fix incorrect interface in docs v2.6
2 parents d990688 + 9c617f2 commit 64cba7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/2.6/customization/extensions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ redirect_from: /customization/extensions/
99

1010
Extensions provide a way to group related parsers, renderers, etc. together with pre-defined priorities, configuration settings, etc. They are perfect for distributing your customizations as reusable, open-source packages that others can plug into their own projects!
1111

12-
To create an extension, simply create a new class implementing `ExtensionInterface`. This has a single method where you're given a `ConfigurableEnvironmentInterface` to register whatever things you need to. For example:
12+
To create an extension, simply create a new class implementing `ExtensionInterface`. This has a single method where you're given a `EnvironmentBuilderInterface` to register whatever things you need to. For example:
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)