@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Neo\EarlyAccess; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\InteractsWithTime; |
|
| 6 | 5 | use Illuminate\Contracts\Auth\Guard as Auth; |
| 7 | 6 | use Illuminate\Contracts\Filesystem\Filesystem as Storage; |
| 7 | +use Illuminate\Support\InteractsWithTime; |
|
| 8 | 8 | |
| 9 | 9 | class EarlyAccess |
| 10 | 10 | { |
@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Neo\EarlyAccess; |
| 4 | 4 | |
| 5 | -use Neo\EarlyAccess\Console\Commands; |
|
| 6 | 5 | use Illuminate\Support\ServiceProvider; |
| 6 | +use Neo\EarlyAccess\Console\Commands; |
|
| 7 | +use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider; |
|
| 7 | 8 | use Neo\EarlyAccess\Events\UserSubscribed; |
| 8 | 9 | use Neo\EarlyAccess\Events\UserUnsubscribed; |
| 9 | -use Neo\EarlyAccess\SubscriptionServices\DatabaseService; |
|
| 10 | -use Neo\EarlyAccess\Listeners\SendUnsubscribeNotification; |
|
| 11 | 10 | use Neo\EarlyAccess\Listeners\SendSubscriptionNotification; |
| 12 | -use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider; |
|
| 11 | +use Neo\EarlyAccess\Listeners\SendUnsubscribeNotification; |
|
| 12 | +use Neo\EarlyAccess\SubscriptionServices\DatabaseService; |
|
| 13 | 13 | use Neo\EarlyAccess\SubscriptionServices\Repositories\Database\EloquentRepository; |
| 14 | 14 | |
| 15 | 15 | class EarlyAccessServiceProvider extends ServiceProvider |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Neo\EarlyAccess\Notifications; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Bus\Queueable; |
| 6 | -use Neo\EarlyAccess\Subscriber; |
|
| 7 | -use Illuminate\Notifications\Notification; |
|
| 8 | 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 9 | 7 | use Illuminate\Notifications\Messages\MailMessage; |
| 8 | +use Illuminate\Notifications\Notification; |
|
| 9 | +use Neo\EarlyAccess\Subscriber; |
|
| 10 | 10 | |
| 11 | 11 | class UserSubscribed extends Notification implements ShouldQueue |
| 12 | 12 | { |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Neo\EarlyAccess\Notifications; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Bus\Queueable; |
| 6 | -use Neo\EarlyAccess\Subscriber; |
|
| 7 | -use Illuminate\Notifications\Notification; |
|
| 8 | 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 9 | 7 | use Illuminate\Notifications\Messages\MailMessage; |
| 8 | +use Illuminate\Notifications\Notification; |
|
| 9 | +use Neo\EarlyAccess\Subscriber; |
|
| 10 | 10 | |
| 11 | 11 | class UserUnsubscribed extends Notification implements ShouldQueue |
| 12 | 12 | { |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Neo\EarlyAccess; |
| 4 | 4 | |
| 5 | +use Illuminate\Contracts\Support\Arrayable; |
|
| 5 | 6 | use Illuminate\Notifications\Notifiable; |
| 7 | +use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider; |
|
| 6 | 8 | use Neo\EarlyAccess\Events\UserSubscribed; |
| 7 | -use Illuminate\Contracts\Support\Arrayable; |
|
| 8 | 9 | use Neo\EarlyAccess\Events\UserUnsubscribed; |
| 9 | -use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider; |
|
| 10 | 10 | |
| 11 | 11 | class Subscriber implements Arrayable |
| 12 | 12 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Neo\EarlyAccess\SubscriptionServices; |
| 4 | 4 | |
| 5 | -use Neo\EarlyAccess\Subscriber; |
|
| 6 | 5 | use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider; |
| 7 | 6 | use Neo\EarlyAccess\Contracts\Subscription\SubscriptionRepository; |
| 7 | +use Neo\EarlyAccess\Subscriber; |
|
| 8 | 8 | |
| 9 | 9 | class DatabaseService implements SubscriptionProvider |
| 10 | 10 | { |