fedi-feed-router/app/Console/Commands/FetchNewArticlesCommand.php
2025-06-29 17:46:06 +02:00

22 lines
430 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\Article\ArticleFetcher;
use Illuminate\Console\Command;
class FetchNewArticlesCommand extends Command
{
protected $signature = 'articles:fetch';
protected $description = 'Fetches new articles';
public function handle(): int
{
logger('Fetch new articles command');
ArticleFetcher::getNewArticles();
return self::SUCCESS;
}
}