From 21aecb799efa99cc81802a7baf22a235afe5c989 Mon Sep 17 00:00:00 2001 From: ziming Date: Wed, 28 Jun 2023 21:13:28 +0800 Subject: [PATCH] Fix imports --- README.md | 4 ++-- src/LaravelStatsigServiceProvider.php | 1 + src/helpers.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6df254e..b128955 100644 --- a/README.md +++ b/README.md @@ -76,11 +76,11 @@ return [ ```php use Illuminate\Support\Facades\Auth; use Statsig\StatsigUser; -use Ziming\LaravelStatsig\LaravelStatsig; +use Ziming\LaravelStatsig\Facades\LaravelStatsig; use Ziming\LaravelStatsig\LaravelStatsigEvent; use Ziming\LaravelStatsig\Utils\LaravelUserToStatsigUserConverter; -$laravelStatsig = new LaravelStatsig(); +$laravelStatsig = new Ziming\LaravelStatsig(); $user = Auth::user(); // The Facade Version is fine too diff --git a/src/LaravelStatsigServiceProvider.php b/src/LaravelStatsigServiceProvider.php index c44e99d..f94474c 100644 --- a/src/LaravelStatsigServiceProvider.php +++ b/src/LaravelStatsigServiceProvider.php @@ -10,6 +10,7 @@ use Spatie\LaravelPackageTools\PackageServiceProvider; use Ziming\LaravelStatsig\Commands\StatsigSendCommand; use Ziming\LaravelStatsig\Commands\StatsigSyncCommand; +use Ziming\LaravelStatsig\Facades\LaravelStatsig; class LaravelStatsigServiceProvider extends PackageServiceProvider { diff --git a/src/helpers.php b/src/helpers.php index 2402c9a..e45bf56 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -3,7 +3,7 @@ declare(strict_types=1); use Illuminate\Support\Facades\Auth; -use Ziming\LaravelStatsig\LaravelStatsig; +use Ziming\LaravelStatsig\Facades\LaravelStatsig; if (! function_exists('statsig_feature_gate')) { function statsig_feature_gate(string $name): bool