parent
d0adff2058
commit
86caeff97c
|
|
@ -211,7 +211,7 @@ class Laravel5Helper extends Laravel
|
|||
private function haveSimpleProduct(array $configs = [], array $productStates = []): Product
|
||||
{
|
||||
$I = $this;
|
||||
if (!in_array('simple', $productStates)) {
|
||||
if (! in_array('simple', $productStates)) {
|
||||
$productStates = array_merge($productStates, ['simple']);
|
||||
}
|
||||
|
||||
|
|
@ -227,7 +227,7 @@ class Laravel5Helper extends Laravel
|
|||
private function haveVirtualProduct(array $configs = [], array $productStates = []): Product
|
||||
{
|
||||
$I = $this;
|
||||
if (!in_array('virtual', $productStates)) {
|
||||
if (! in_array('virtual', $productStates)) {
|
||||
$productStates = array_merge($productStates, ['virtual']);
|
||||
}
|
||||
|
||||
|
|
@ -243,7 +243,7 @@ class Laravel5Helper extends Laravel
|
|||
private function haveDownloadableProduct(array $configs = [], array $productStates = []): Product
|
||||
{
|
||||
$I = $this;
|
||||
if (!in_array('downloadable', $productStates)) {
|
||||
if (! in_array('downloadable', $productStates)) {
|
||||
$productStates = array_merge($productStates, ['downloadable']);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ use Illuminate\Support\ServiceProvider;
|
|||
use Webkul\Product\Models\ProductProxy;
|
||||
use Webkul\Product\Observers\ProductObserver;
|
||||
use Webkul\Product\Console\Commands\PriceUpdate;
|
||||
use Webkul\Product\Console\Commands\GenerateProducts;
|
||||
use Illuminate\Foundation\AliasLoader;
|
||||
use Webkul\Product\Facades\ProductImage as ProductImageFacade;
|
||||
use Webkul\Product\Facades\ProductVideo as ProductVideoFacade;
|
||||
|
|
@ -67,10 +66,7 @@ class ProductServiceProvider extends ServiceProvider
|
|||
protected function registerCommands(): void
|
||||
{
|
||||
if ($this->app->runningInConsole()) {
|
||||
$this->commands([
|
||||
PriceUpdate::class,
|
||||
GenerateProducts::class,
|
||||
]);
|
||||
$this->commands([PriceUpdate::class]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue