From a5d52f76204d5c8617f6c717ec9e9d9825d09f34 Mon Sep 17 00:00:00 2001 From: Rias Date: Mon, 31 May 2021 09:30:49 +0200 Subject: [PATCH] Package throws an exception when using with Statamic (#155) Statamic overrides the View instance, which isn't registered yet if you call the ConfigurationValidator in the packageRegistered function. --- src/FeedServiceProvider.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/FeedServiceProvider.php b/src/FeedServiceProvider.php index 18d4f8d..8c1e789 100644 --- a/src/FeedServiceProvider.php +++ b/src/FeedServiceProvider.php @@ -27,7 +27,10 @@ public function configurePackage(Package $package): void public function packageRegistered() { $this->registerRouteMacro(); - + } + + public function packageBooted() + { if (! app()->runningUnitTests()) { ConfigurationValidator::validate(); }