Skip to content

Commit

Permalink
Merge pull request #21 from ghermans/main
Browse files Browse the repository at this point in the history
quick update
  • Loading branch information
ghermans authored Oct 20, 2021
2 parents 894af25 + 3f53a28 commit d5b25af
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/Providers/StockNotifyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ public function boot()
__DIR__.'/../Resources/views/email' => resource_path('views/stocknotify'),
]);

}

/**
* Register services.
*
* @return void
*/
public function register()
{
$this->registerConfig();

$this->app->booted(function () {

if (core()->getConfigData('catalog.inventory.notifications.status')) {
Expand Down Expand Up @@ -53,16 +64,6 @@ public function boot()
});
}

/**
* Register services.
*
* @return void
*/
public function register()
{
$this->registerConfig();
}

/**
* Register package config.
*
Expand Down

0 comments on commit d5b25af

Please sign in to comment.