Skip to content

Commit

Permalink
Use docblock for ServiceProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersai committed Jan 21, 2024
1 parent b0b2316 commit ba6a4b0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/UssdServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,22 @@

class UssdServiceProvider extends ServiceProvider
{
public function boot(): void
/** @return void */
public function boot()
{
if ($this->app->runningInConsole()) {
$this->bootForConsole();
}
}

public function register(): void
/** @return void */
public function register()
{
$this->mergeConfigFrom(__DIR__.'/../config/ussd.php', 'ussd');
}

protected function bootForConsole(): void
/** @return void */
protected function bootForConsole()
{
$this->publishes([
__DIR__.'/../config/ussd.php' => config_path('ussd.php'),
Expand Down

0 comments on commit ba6a4b0

Please sign in to comment.