for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of laravel.su package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace App\Console\Commands;
use Carbon\Carbon;
use App\Models\Bot;
use App\Models\Article;
use Illuminate\Config\Repository;
use Illuminate\Console\Command;
use App\Services\DataProviders\Manager;
use App\Services\DataProviders\ExternalArticle;
use App\Services\DataProviders\DataProviderInterface;
use Illuminate\Database\Eloquent\Relations\MorphMany;
* Class SphinxDaemon.
class SphinxDaemon extends Command
{
* The name and signature of the console command.
* @var string
protected $signature = 'sphinx:run';
* The console command description.
protected $description = '';
* @param Repository $conf
public function handle(Repository $conf)
$cmd = sprintf(
'%s --config "%s"',
$conf->get('sphinx.searchd'),
$conf->get('sphinx.conf')
);
system($cmd);
}