@@ -5,13 +5,13 @@ |
||
5 | 5 | use Exception; |
6 | 6 | use Illuminate\Config\Repository; |
7 | 7 | use Illuminate\Http\Request as IlluminateRequest; |
8 | -use Spatie\SlashCommand\Exceptions\InvalidHandler; |
|
9 | -use Spatie\SlashCommand\Exceptions\InvalidRequest; |
|
10 | -use Spatie\SlashCommand\Handlers\SignatureHandler; |
|
11 | 8 | use Illuminate\Http\Response as IlluminateResponse; |
12 | 9 | use Illuminate\Routing\Controller as IlluminateController; |
10 | +use Spatie\SlashCommand\Exceptions\InvalidHandler; |
|
11 | +use Spatie\SlashCommand\Exceptions\InvalidRequest; |
|
13 | 12 | use Spatie\SlashCommand\Exceptions\RequestCouldNotBeHandled; |
14 | 13 | use Spatie\SlashCommand\Exceptions\SlackSlashCommandException; |
14 | +use Spatie\SlashCommand\Handlers\SignatureHandler; |
|
15 | 15 | |
16 | 16 | class Controller extends IlluminateController |
17 | 17 | { |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\SlashCommand\Handlers; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | -use Spatie\SlashCommand\Request; |
|
7 | -use Spatie\SlashCommand\Response; |
|
8 | 5 | use Illuminate\Support\Collection; |
6 | +use Illuminate\Support\Str; |
|
9 | 7 | use Spatie\SlashCommand\Attachment; |
10 | 8 | use Spatie\SlashCommand\AttachmentField; |
11 | 9 | use Spatie\SlashCommand\HandlesSlashCommand; |
10 | +use Spatie\SlashCommand\Request; |
|
11 | +use Spatie\SlashCommand\Response; |
|
12 | 12 | |
13 | 13 | class CatchAll extends BaseHandler |
14 | 14 | { |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\SlashCommand\Handlers; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | -use Spatie\SlashCommand\Request; |
|
7 | -use Spatie\SlashCommand\Response; |
|
8 | 5 | use Illuminate\Support\Collection; |
6 | +use Illuminate\Support\Str; |
|
9 | 7 | use Spatie\SlashCommand\Attachment; |
10 | 8 | use Spatie\SlashCommand\AttachmentField; |
11 | 9 | use Spatie\SlashCommand\HandlesSlashCommand; |
10 | +use Spatie\SlashCommand\Request; |
|
11 | +use Spatie\SlashCommand\Response; |
|
12 | 12 | |
13 | 13 | class Help extends SignatureHandler |
14 | 14 | { |
@@ -2,17 +2,17 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\SlashCommand\Handlers; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Illuminate\Console\Parser; |
6 | +use Illuminate\Support\Str; |
|
7 | +use Spatie\SlashCommand\Exceptions\InvalidHandler; |
|
8 | +use Spatie\SlashCommand\Exceptions\InvalidInput; |
|
7 | 9 | use Spatie\SlashCommand\Request; |
8 | 10 | use Symfony\Component\Console\Command\Command; |
9 | -use Spatie\SlashCommand\Exceptions\InvalidInput; |
|
10 | -use Symfony\Component\Console\Input\StringInput; |
|
11 | -use Spatie\SlashCommand\Exceptions\InvalidHandler; |
|
11 | +use Symfony\Component\Console\Exception\RuntimeException; |
|
12 | +use Symfony\Component\Console\Helper\DescriptorHelper; |
|
12 | 13 | use Symfony\Component\Console\Input\InputDefinition; |
14 | +use Symfony\Component\Console\Input\StringInput; |
|
13 | 15 | use Symfony\Component\Console\Output\BufferedOutput; |
14 | -use Symfony\Component\Console\Helper\DescriptorHelper; |
|
15 | -use Symfony\Component\Console\Exception\RuntimeException; |
|
16 | 16 | |
17 | 17 | abstract class SignatureHandler extends BaseHandler |
18 | 18 | { |