repository = $repository; $this->service = $service; $this->cache_service = $cache_service; } /** * The console command name. * * @var string */ protected $name = 'summit:synch-presentation-actions'; /** * The name and signature of the console command. * * @var string */ protected $signature = 'summit:synch-presentation-actions'; /** * The console command description. * * @var string */ protected $description = 'Synch All Summits Presention Actions'; /** * Execute the console command. * * @return mixed */ public function handle() { $summits = $this->repository->getCurrentAndFutureSummits(); foreach($summits as $summit) { Log::debug(sprintf("SummitSyncAllPresentationActions::handle processing summit %s (%s)", $summit->getName(), $summit->getId())); $this->info(sprintf("processing summit %s (%s)", $summit->getName(), $summit->getId())); $summit->synchAllPresentationActions(); $this->info(sprintf("regenerated presentation actions for summit id %s", $summit->getIdentifier())); } } }