Not used, so not used - Providers
This commit is contained in:
		| @@ -1,28 +1,10 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace App\Providers; | ||||
|  | ||||
| use Illuminate\Support\ServiceProvider; | ||||
|  | ||||
| class AppServiceProvider extends ServiceProvider | ||||
| { | ||||
|     /** | ||||
|      * Register any application services. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function register() | ||||
|     { | ||||
|         // | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Bootstrap any application services. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function boot() | ||||
|     { | ||||
|         // | ||||
|     } | ||||
| } | ||||
| {} | ||||
|   | ||||
| @@ -1,30 +1,17 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace App\Providers; | ||||
|  | ||||
| use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; | ||||
| use Illuminate\Support\Facades\Gate; | ||||
|  | ||||
| class AuthServiceProvider extends ServiceProvider | ||||
| { | ||||
|     /** | ||||
|      * The policy mappings for the application. | ||||
|      * | ||||
|      * @var array<class-string, class-string> | ||||
|      */ | ||||
|     protected $policies = [ | ||||
|         // 'App\Models\Model' => 'App\Policies\ModelPolicy', | ||||
|     ]; | ||||
|  | ||||
|     /** | ||||
|      * Register any authentication / authorization services. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function boot() | ||||
|     { | ||||
|         $this->registerPolicies(); | ||||
|  | ||||
|         // | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -1,21 +0,0 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Providers; | ||||
|  | ||||
| use Illuminate\Support\Facades\Broadcast; | ||||
| use Illuminate\Support\ServiceProvider; | ||||
|  | ||||
| class BroadcastServiceProvider extends ServiceProvider | ||||
| { | ||||
|     /** | ||||
|      * Bootstrap any application services. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function boot() | ||||
|     { | ||||
|         Broadcast::routes(); | ||||
|  | ||||
|         require base_path('routes/channels.php'); | ||||
|     } | ||||
| } | ||||
| @@ -1,5 +1,7 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace App\Providers; | ||||
|  | ||||
| use Illuminate\Support\ServiceProvider; | ||||
| @@ -8,14 +10,11 @@ use App\Repository\Interfaces\CategoryRepository as CategoryRepositoryInterface; | ||||
|  | ||||
| class CategoryServiceProvider extends ServiceProvider | ||||
| { | ||||
|     /** | ||||
|      * Register services. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|  | ||||
|     public function register() | ||||
|     { | ||||
|         $this->app | ||||
|             ->bind(CategoryRepositoryInterface::class, CategoryRepository::class); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -1,32 +0,0 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Providers; | ||||
|  | ||||
| use Illuminate\Auth\Events\Registered; | ||||
| use Illuminate\Auth\Listeners\SendEmailVerificationNotification; | ||||
| use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; | ||||
| use Illuminate\Support\Facades\Event; | ||||
|  | ||||
| class EventServiceProvider extends ServiceProvider | ||||
| { | ||||
|     /** | ||||
|      * The event listener mappings for the application. | ||||
|      * | ||||
|      * @var array<class-string, array<int, class-string>> | ||||
|      */ | ||||
|     protected $listen = [ | ||||
|         Registered::class => [ | ||||
|             SendEmailVerificationNotification::class, | ||||
|         ], | ||||
|     ]; | ||||
|  | ||||
|     /** | ||||
|      * Register any events for your application. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function boot() | ||||
|     { | ||||
|         // | ||||
|     } | ||||
| } | ||||
| @@ -1,5 +1,7 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace App\Providers; | ||||
|  | ||||
| use Illuminate\Support\ServiceProvider; | ||||
| @@ -9,11 +11,6 @@ use App\Repository\ProjectRepository; | ||||
| class ProjectServiceProvider extends ServiceProvider | ||||
| { | ||||
|  | ||||
|     /** | ||||
|      * Register services. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function register() | ||||
|     { | ||||
|         $this->app->bind(ProjectRepositoryInterface::class, ProjectRepository::class); | ||||
|   | ||||
| @@ -10,30 +10,11 @@ use Illuminate\Support\Facades\Route; | ||||
|  | ||||
| class RouteServiceProvider extends ServiceProvider | ||||
| { | ||||
|     /** | ||||
|      * The path to the "home" route for your application. | ||||
|      * | ||||
|      * This is used by Laravel authentication to redirect users after login. | ||||
|      * | ||||
|      * @var string | ||||
|      */ | ||||
|     public const HOME = '/'; | ||||
|  | ||||
|     /** | ||||
|      * The controller namespace for the application. | ||||
|      * | ||||
|      * When present, controller route declarations will automatically be prefixed with this namespace. | ||||
|      * | ||||
|      * @var string|null | ||||
|      */ | ||||
|     public const HOME = '/'; | ||||
|     protected $namespace = 'App\\Http\\Controllers'; | ||||
|  | ||||
|     /** | ||||
|      * Define your route model bindings, pattern filters, etc. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function boot() | ||||
|     public function boot(): void | ||||
|     { | ||||
|         $this->configureRateLimiting(); | ||||
|  | ||||
| @@ -50,15 +31,11 @@ class RouteServiceProvider extends ServiceProvider | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Configure the rate limiters for the application. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     protected function configureRateLimiting() | ||||
|     { | ||||
|         RateLimiter::for('api', function (Request $request) { | ||||
|             return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); | ||||
|         }); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user