fedi-feed-router/app/Console/Commands/FetchNewArticlesCommand.php

23 lines
431 B
PHP
Raw Normal View History

2025-06-29 09:37:49 +02:00
<?php
namespace App\Console\Commands;
use App\Services\Articles\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;
}
}