Skip to content

Commit 5199268

Browse files
committed
Bump laravel dep, use the Facade to get the highlight
1 parent 382a917 commit 5199268

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
],
2020
"require": {
2121
"php": "^7.2|^8.0",
22-
"torchlight/torchlight-laravel": "^0.4.0",
23-
"league/commonmark": "^1.5"
22+
"league/commonmark": "^1.5",
23+
"torchlight/torchlight-laravel": "^0.5.0"
2424
},
2525
"require-dev": {
2626
"orchestra/testbench": "^5.0|^6.0",

src/TorchlightExtension.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use League\CommonMark\Extension\ExtensionInterface;
1414
use League\CommonMark\Util\Xml;
1515
use Torchlight\Block;
16-
use Torchlight\Client;
16+
use Torchlight\Torchlight;
1717

1818
class TorchlightExtension implements ExtensionInterface, BlockRendererInterface
1919
{
@@ -60,7 +60,7 @@ public function onDocumentParsed(DocumentParsedEvent $event)
6060
// All we need to do is fire the request, which will store
6161
// the results in the cache. In the render function we
6262
// use that cached value.
63-
(new Client)->highlight(static::$torchlightBlocks);
63+
Torchlight::highlight(static::$torchlightBlocks);
6464
}
6565

6666
public function render(AbstractBlock $block, ElementRendererInterface $htmlRenderer, $inTightList = false)

0 commit comments

Comments
 (0)