Skip to content

Commit a5d52f7

Browse files
authored
Package throws an exception when using with Statamic (spatie#155)
Statamic overrides the View instance, which isn't registered yet if you call the ConfigurationValidator in the packageRegistered function.
1 parent 75306a2 commit a5d52f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/FeedServiceProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ public function configurePackage(Package $package): void
2727
public function packageRegistered()
2828
{
2929
$this->registerRouteMacro();
30-
30+
}
31+
32+
public function packageBooted()
33+
{
3134
if (! app()->runningUnitTests()) {
3235
ConfigurationValidator::validate();
3336
}

0 commit comments

Comments
 (0)