Skip to content

Commit

Permalink
Package throws an exception when using with Statamic (#155)
Browse files Browse the repository at this point in the history
Statamic overrides the View instance, which isn't registered yet if you call the ConfigurationValidator in the packageRegistered function.
  • Loading branch information
riasvdv authored May 31, 2021
1 parent 75306a2 commit a5d52f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/FeedServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public function configurePackage(Package $package): void
public function packageRegistered()
{
$this->registerRouteMacro();

}

public function packageBooted()
{
if (! app()->runningUnitTests()) {
ConfigurationValidator::validate();
}
Expand Down

0 comments on commit a5d52f7

Please sign in to comment.