File: D:/HostingSpaces/SBogers84/zuiderbos.nl/app/commands/updateSearchIndexTable.php
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class updateSearchIndexTable extends Command {
/**
* The console command name.
*
* @var string
*/
protected $name = 'searchTable:update';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description.';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
$searchService = new \Komma\Search\SearchService();
$log = $searchService->updateSearchTable();
$this->comment($log);
}
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return array(
);
}
/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return array(
);
}
}