Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
8 | class YandexCheckoutServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | public function boot() |
||
11 | { |
||
12 | if ($this->app->runningInConsole()) { |
||
13 | $this->publishes([ |
||
14 | __DIR__ . '/../config/config.php' => config_path('yandex-checkout.php'), |
||
15 | ], 'config'); |
||
16 | |||
17 | if (! class_exists('CreateYandexCheckoutsTable')) { |
||
18 | $this->publishes([ |
||
19 | __DIR__ . '/../database/migrations/yandex_checkouts_table.php.stub' => database_path('migrations/' . date('Y_m_d_His') . '_create_yandex_checkouts_table.php'), |
||
20 | ], 'migrations'); |
||
21 | } |
||
22 | |||
23 | $this->commands([CheckPaymentCommand::class]); |
||
24 | } |
||
25 | } |
||
26 | |||
27 | public function register() |
||
33 | }); |
||
34 | } |
||
36 |