Skip to content

Commit

Permalink
Merge pull request #38 from larapack/register-commands
Browse files Browse the repository at this point in the history
Register commands for non-console
  • Loading branch information
marktopper authored Feb 2, 2018
2 parents 6b3ce66 + 3ca7d63 commit a3d84cb
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/HooksServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@ public function register()
return;
}

// Registers resources and commands
if ($this->app->runningInConsole()) {
$this->registerCommands();

$this->publishes(
[$configPath => config_path('hooks.php')],
'hooks-config'
);
}
$this->registerCommands();

$this->publishes(
[$configPath => config_path('hooks.php')],
'hooks-config'
);

// Register Hooks system and aliases
$this->app->singleton(Hooks::class, function ($app) {
Expand Down

0 comments on commit a3d84cb

Please sign in to comment.