Skip to content

Commit b695543

Browse files
committed
Better name
1 parent 3dbd182 commit b695543

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# Changelog
22

3+
## 0.3.3 - 2021-07-31
4+
5+
### Changed
6+
- Changed `registerCustomBlockRenderer` to `useCustomBlockRenderer`.
7+
38
## 0.3.2 - 2021-07-31
49

510
### Added
611
- Ability to register a custom block renderer. Needed for Ibis client.
712

8-
913
## 0.3.1 - 2021-06-17
1014

1115
### Added

src/TorchlightExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function render(AbstractBlock $block, ElementRendererInterface $htmlRende
7676
}
7777
}
7878

79-
public function registerCustomBlockRenderer($callback)
79+
public function useCustomBlockRenderer($callback)
8080
{
8181
$this->customBlockRenderer = $callback;
8282

tests/CodeRendererTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function it_can_set_a_custom_renderer()
9696
]);
9797

9898
$extension = new TorchlightExtension;
99-
$extension->registerCustomBlockRenderer(function (Block $block) {
99+
$extension->useCustomBlockRenderer(function(Block $block) {
100100
return 'foo_bar';
101101
});
102102

0 commit comments

Comments
 (0)