<?php

namespace App\Console\Commands\Import;

use Aic\Hub\Foundation\AbstractCommand as BaseCommand;

class ImportScheduleDaily extends BaseCommand
{

    protected $signature = 'import:daily';

    protected $description = 'Run all increment commands on sources that we\'re able to, and do a full refresh on sources that require it.';


    public function handle()
    {

        $this->call('import:collections');
        $this->call('import:collections-delete');
        $this->call('import:events-ticketed-full', ['--yes' => 'default']);
        $this->call('import:mobile');
        $this->call('import:products-full --yes');
        $this->call('import:web');
        $this->call('import:digital-labels');

        // EventOccurrence is not included in import:web to avoid duplication
        $this->call('import:web-full events/occurrences --yes');
    }

}

<?php

namespace App\Console\Commands\Import;

use Aic\Hub\Foundation\AbstractCommand as BaseCommand;

class ImportScheduleDaily extends BaseCommand
{

    protected $signature = 'import:daily';

    protected $description = 'Run all increment commands on sources that we\'re able to, and do a full refresh on sources that require it.';


    public function handle()
    {

        $this->call('import:collections');
        $this->call('import:collections-delete');
        $this->call('import:events-ticketed-full', ['--yes' => 'default']);
        $this->call('import:mobile');
        $this->call('import:products-full', ['--yes' => 'default']);
        $this->call('import:web');
        $this->call('import:digital-labels');

        // EventOccurrence is not included in import:web to avoid duplication
        $this->call('import:web-full', [
            '--yes' => 'default',
            'endpoint' => 'events/occurrences'
        ]);
    }

}

Fix scheduled import option syntax
Fix scheduled import option syntax

Confirmed that this is the correct syntax. Otherwise, it complains
about the command not being found.
