| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 1 |
| 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 | collect(config('laravel-slack-slash-command.commands'))->each(function (array $commandConfig) { |
||
| 21 | |||
| 22 | $this->app['router']->post($commandConfig['url'], function () use ($commandConfig) { |
||
| 23 | |||
| 24 | return (new SlackCommandResponder($commandConfig, request()))->getResponse(); |
||
| 25 | |||
| 26 | }); |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | |||
| 38 |