Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ziming committed Jun 28, 2023
1 parent 337ca46 commit 21aecb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/LaravelStatsigServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21aecb7

Please sign in to comment.