Commit 84b97040 authored by Jacob Priddy's avatar Jacob Priddy 👌

Remove the boot method on providers

parent c80e754a
......@@ -32,15 +32,6 @@ class DummyClassRepositoryServiceProvider extends ServiceProvider implements Def
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -24,15 +24,6 @@ class DummyClassUseCaseServiceProvider extends ServiceProvider implements Deferr
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
<?php
namespace App\Documentation\Strategies;
use ReflectionClass;
use ReflectionMethod;
use Illuminate\Routing\Route;
use Mpociot\ApiDoc\Extracting\Strategies\Strategy;
class GoodResponseValidationStrategy extends Strategy
{
/**
* @inheritDoc
*/
public function __invoke(Route $route, ReflectionClass $controller, ReflectionMethod $method, array $routeRules, array $context = [])
{
dd($route, $context);
foreach ($context['responses'] as $response) {
$status = $response['status'] ?? 0;
if ($status < 300 && $status >= 200) {
return null;
}
}
}
}
......@@ -370,6 +370,7 @@ return [
\Mpociot\ApiDoc\Extracting\Strategies\Responses\UseApiResourceTags::class,
\Mpociot\ApiDoc\Extracting\Strategies\Responses\UseResponseFileTag::class,
\App\Documentation\Strategies\UnauthenticatedResponseStrategy::class,
\App\Documentation\Strategies\GoodResponseValidationStrategy::class,
],
],
......
......@@ -33,15 +33,6 @@ class AuthorizerServiceProvider extends ServiceProvider implements DeferrablePro
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -32,15 +32,6 @@ class AttemptsRepositoryServiceProvider extends ServiceProvider implements Defer
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -42,15 +42,6 @@ class DoorGroupRepositoryServiceProvider extends ServiceProvider implements Defe
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -43,15 +43,6 @@ class DoorScheduleRepositoryServiceProvider extends ServiceProvider implements D
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -45,15 +45,6 @@ class DoorUserRepositoryServiceProvider extends ServiceProvider implements Defer
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -32,15 +32,6 @@ class DoorsRepositoryServiceProvider extends ServiceProvider implements Deferrab
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -32,15 +32,6 @@ class EntriesRepositoryServiceProvider extends ServiceProvider implements Deferr
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -32,15 +32,6 @@ class FilesystemRepositoryServiceProvider extends ServiceProvider implements Def
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -42,15 +42,6 @@ class GroupUserRepositoryServiceProvider extends ServiceProvider implements Defe
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -32,15 +32,6 @@ class GroupsRepositoryServiceProvider extends ServiceProvider implements Deferra
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -36,15 +36,6 @@ class OverridesRepositoryServiceProvider extends ServiceProvider implements Defe
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -23,15 +23,6 @@ class RecurrenceSetRepositoryServiceProvider extends ServiceProvider implements
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -36,15 +36,6 @@ class SamlRepositoryServiceProvider extends ServiceProvider implements Deferrabl
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -31,15 +31,6 @@ class SchedulesRepositoryServiceProvider extends ServiceProvider implements Defe
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -32,15 +32,6 @@ class TokensRepositoryServiceProvider extends ServiceProvider implements Deferra
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -34,15 +34,6 @@ class UsersRepositoryServiceProvider extends ServiceProvider implements Deferrab
);
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -25,15 +25,6 @@ class GetAttemptsUseCaseServiceProvider extends ServiceProvider implements Defer
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -51,15 +51,6 @@ class AccessUseCaseServiceProvider extends ServiceProvider implements Deferrable
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -25,15 +25,6 @@ class AuthenticateUseCaseServiceProvider extends ServiceProvider implements Defe
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -31,15 +31,6 @@ class StatusResponseUseCaseServiceProvider extends ServiceProvider implements De
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -28,15 +28,6 @@ class UpdateBinaryUseCaseServiceProvider extends ServiceProvider implements Defe
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -25,15 +25,6 @@ class AddDoorToGroupUseCaseServiceProvider extends ServiceProvider implements De
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -25,15 +25,6 @@ class GetDoorGroupsUseCaseServiceProvider extends ServiceProvider implements Def
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -25,15 +25,6 @@ class GetGroupDoorsUseCaseServiceProvider extends ServiceProvider implements Def
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -25,15 +25,6 @@ class RemoveDoorFromGroupUseCaseServiceProvider extends ServiceProvider implemen
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -31,15 +31,6 @@ class UserDoorAccessUseCaseServiceProvider extends ServiceProvider implements De
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -26,15 +26,6 @@ class CreateDoorUseCaseServiceProvider extends ServiceProvider implements Deferr
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -25,15 +25,6 @@ class DeleteDoorUseCaseServiceProvider extends ServiceProvider implements Deferr
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -26,15 +26,6 @@ class GenerateDoorTokenUseCaseServiceProvider extends ServiceProvider implements
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......
......@@ -25,15 +25,6 @@ class GetDoorUseCaseServiceProvider extends ServiceProvider implements Deferrabl
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
}
/**
* @return array
*/
......