Skip to content

Commit f2dfeb7

Browse files
committed
Moves the MarkdownUtility initialization from the constructor to the boot method to clear error
1 parent 3e36a75 commit f2dfeb7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ToolServiceProvider.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ class ToolServiceProvider extends ServiceProvider
1818
*/
1919
protected $utility;
2020

21-
public function __construct($app)
22-
{
23-
parent::__construct($app);
24-
25-
$this->utility = new MarkdownUtility();
26-
}
27-
2821
/**
2922
* Bootstrap any application services.
3023
*
@@ -33,6 +26,8 @@ public function __construct($app)
3326
*/
3427
public function boot()
3528
{
29+
$this->utility = new MarkdownUtility();
30+
3631
$this->loadViewsFrom(__DIR__.'/../resources/views', 'nova-documentation');
3732

3833
$this->app->booted(function () {

0 commit comments

Comments
 (0)