PanovAlexey /
laravel-yandex-speller-package
| 1 | <?php |
||
| 2 | |||
| 3 | namespace CodeblogPro\YandexSpeller; |
||
| 4 | |||
| 5 | use CodeblogPro\YandexSpeller\Application\Contracts\AnswerInterface; |
||
| 6 | use CodeblogPro\YandexSpeller\Application\Contracts\YandexSpellerInterface; |
||
| 7 | use CodeblogPro\YandexSpeller\Application\Models\Answer; |
||
| 8 | use CodeblogPro\YandexSpeller\Application\Services\YandexSpeller\YandexSpellerService; |
||
| 9 | |||
| 10 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
| 11 | { |
||
| 12 | public function register(): void |
||
| 13 | { |
||
| 14 | parent::register(); |
||
| 15 | |||
| 16 | $this->app->bind(YandexSpellerInterface::class, YandexSpellerService::class); |
||
| 17 | $this->app->bind(AnswerInterface::class, Answer::class); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function boot(): void |
||
| 21 | { |
||
| 22 | $this->loadRoutesFrom(__DIR__ . '/../routes/yandex-speller.php'); |
||
| 23 | $this->publishes([ |
||
| 24 | __DIR__ . '/../config/yandexspeller.php' => config_path('yandexspeller.php'), |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 25 | 'yandexspeller-config' |
||
| 26 | ]); |
||
| 27 | $this->mergeConfigFrom(__DIR__ . '/../config/yandexspeller.php', 'yandexspeller'); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |