wip
This commit is contained in:
		| @@ -9,7 +9,7 @@ use Illuminate\Notifications\ChannelManager; | ||||
| use Illuminate\Support\Carbon; | ||||
| use Illuminate\Support\Facades\Notification; | ||||
| use Illuminate\Support\ServiceProvider; | ||||
| use Toby\Domain\Slack\SlackApiChannel; | ||||
| use Toby\Domain\Slack\Channels\SlackApiChannel; | ||||
|  | ||||
| class AppServiceProvider extends ServiceProvider | ||||
| { | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
| 
 | ||||
| declare(strict_types=1); | ||||
| 
 | ||||
| namespace Toby\Domain\Slack; | ||||
| namespace Toby\Domain\Slack\Channels; | ||||
| 
 | ||||
| use Illuminate\Http\Client\Response; | ||||
| use Illuminate\Notifications\Notification; | ||||
| @@ -2,7 +2,7 @@ | ||||
| 
 | ||||
| declare(strict_types=1); | ||||
| 
 | ||||
| namespace Toby\Domain\Slack; | ||||
| namespace Toby\Domain\Slack\Exceptions; | ||||
| 
 | ||||
| use Spatie\SlashCommand\Exceptions\SlackSlashCommandException; | ||||
| 
 | ||||
| @@ -9,7 +9,6 @@ use Spatie\SlashCommand\Attachment; | ||||
| use Spatie\SlashCommand\Request; | ||||
| use Spatie\SlashCommand\Response; | ||||
| use Toby\Domain\DailySummaryRetriever; | ||||
| use Toby\Domain\Slack\SignatureHandler; | ||||
| use Toby\Eloquent\Models\User; | ||||
| use Toby\Eloquent\Models\Vacation; | ||||
|  | ||||
|   | ||||
| @@ -8,10 +8,9 @@ use Illuminate\Validation\ValidationException; | ||||
| use Spatie\SlashCommand\Request; | ||||
| use Spatie\SlashCommand\Response; | ||||
| use Toby\Domain\Notifications\KeyHasBeenGivenNotification; | ||||
| use Toby\Domain\Slack\SignatureHandler; | ||||
| use Toby\Domain\Slack\SlackUserExistsRule; | ||||
| use Toby\Domain\Slack\Exceptions\UserNotFoundException; | ||||
| use Toby\Domain\Slack\Rules\SlackUserExistsRule; | ||||
| use Toby\Domain\Slack\Traits\FindsUserBySlackId; | ||||
| use Toby\Domain\Slack\UserNotFoundException; | ||||
| use Toby\Eloquent\Models\Key; | ||||
|  | ||||
| class GiveKeysTo extends SignatureHandler | ||||
|   | ||||
| @@ -7,7 +7,6 @@ namespace Toby\Domain\Slack\Handlers; | ||||
| use Spatie\SlashCommand\Attachment; | ||||
| use Spatie\SlashCommand\Request; | ||||
| use Spatie\SlashCommand\Response; | ||||
| use Toby\Domain\Slack\SignatureHandler; | ||||
| use Toby\Domain\Slack\Traits\ListsHandlers; | ||||
|  | ||||
| class Help extends SignatureHandler | ||||
|   | ||||
| @@ -9,7 +9,6 @@ use Spatie\SlashCommand\Request; | ||||
| use Spatie\SlashCommand\Response; | ||||
| use Toby\Domain\Actions\VacationRequest\CreateAction; | ||||
| use Toby\Domain\Enums\VacationType; | ||||
| use Toby\Domain\Slack\SignatureHandler; | ||||
| use Toby\Domain\Slack\Traits\FindsUserBySlackId; | ||||
| use Toby\Eloquent\Models\User; | ||||
| use Toby\Eloquent\Models\YearPeriod; | ||||
|   | ||||
| @@ -7,7 +7,6 @@ namespace Toby\Domain\Slack\Handlers; | ||||
| use Spatie\SlashCommand\Attachment; | ||||
| use Spatie\SlashCommand\Request; | ||||
| use Spatie\SlashCommand\Response; | ||||
| use Toby\Domain\Slack\SignatureHandler; | ||||
| use Toby\Eloquent\Models\Key; | ||||
|  | ||||
| class KeyList extends SignatureHandler | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
| 
 | ||||
| declare(strict_types=1); | ||||
| 
 | ||||
| namespace Toby\Domain\Slack; | ||||
| namespace Toby\Domain\Slack\Handlers; | ||||
| 
 | ||||
| use Illuminate\Support\Facades\Validator; | ||||
| use Spatie\SlashCommand\Handlers\SignatureHandler as BaseSignatureHandler; | ||||
| @@ -8,10 +8,9 @@ use Illuminate\Validation\ValidationException; | ||||
| use Spatie\SlashCommand\Request; | ||||
| use Spatie\SlashCommand\Response; | ||||
| use Toby\Domain\Notifications\KeyHasBeenTakenNotification; | ||||
| use Toby\Domain\Slack\SignatureHandler; | ||||
| use Toby\Domain\Slack\SlackUserExistsRule; | ||||
| use Toby\Domain\Slack\Exceptions\UserNotFoundException; | ||||
| use Toby\Domain\Slack\Rules\SlackUserExistsRule; | ||||
| use Toby\Domain\Slack\Traits\FindsUserBySlackId; | ||||
| use Toby\Domain\Slack\UserNotFoundException; | ||||
| use Toby\Eloquent\Models\Key; | ||||
|  | ||||
| class TakeKeysFrom extends SignatureHandler | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
| 
 | ||||
| declare(strict_types=1); | ||||
| 
 | ||||
| namespace Toby\Domain\Slack; | ||||
| namespace Toby\Domain\Slack\Rules; | ||||
| 
 | ||||
| use Illuminate\Contracts\Validation\Rule; | ||||
| use Illuminate\Support\Str; | ||||
| @@ -5,7 +5,7 @@ declare(strict_types=1); | ||||
| namespace Toby\Domain\Slack\Traits; | ||||
|  | ||||
| use Illuminate\Support\Str; | ||||
| use Toby\Domain\Slack\UserNotFoundException; | ||||
| use Toby\Domain\Slack\Exceptions\UserNotFoundException; | ||||
| use Toby\Eloquent\Models\User; | ||||
|  | ||||
| trait FindsUserBySlackId | ||||
|   | ||||
		Reference in New Issue
	
	Block a user