| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function boot() |
||
| 15 | { |
||
| 16 | $this->publishes([ |
||
| 17 | __DIR__.'/../config/laravel-slack-slash-command.php' => config_path('laravel-slack-slash-command.php'), |
||
| 18 | ], 'config'); |
||
| 19 | |||
| 20 | $this->app['router']->get(config('laravel-slack-slash-command.url'), function () { |
||
| 21 | |||
| 22 | $slashCommandRequest = SlashCommandRequest::createForRequest(request()); |
||
| 23 | |||
| 24 | $slashCommandHandlers = new Collection(config('laravel-slack-slash-command.handlers'), $slashCommandRequest); |
||
| 25 | |||
| 26 | return $slashCommandHandlers->getResponse(); |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | |||
| 38 |