Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions app/Actions/Model/UpdateArticle.php

This file was deleted.

15 changes: 0 additions & 15 deletions app/Actions/Model/UpdateBotRunTimestamp.php

This file was deleted.

51 changes: 0 additions & 51 deletions app/Actions/Model/UpdateOrCreateSitemapPage.php

This file was deleted.

25 changes: 0 additions & 25 deletions app/Actions/Model/UpdateSitemapUrls.php

This file was deleted.

19 changes: 0 additions & 19 deletions app/Concerns/PageValidationRules.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Concerns/ScrapeValidationRules.php

This file was deleted.

18 changes: 0 additions & 18 deletions app/Concerns/SerpValidationRules.php

This file was deleted.

23 changes: 0 additions & 23 deletions app/Concerns/SitemapPageValidationRules.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Concerns/SitemapValidationRules.php

This file was deleted.

20 changes: 20 additions & 0 deletions app/Console/Commands/GoPub.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace App\Console\Commands;

use App\Facades\Go;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;

#[Signature('go:pub {id}')]
#[Description('Send a bot the go engine.')]
class GoPub extends Command
{
public function handle(): void
{
$this->info("Sending bot ({$this->argument('id')}) to the go engine.");
Go::pub($this->argument('id'));
$this->info('Sent.');
}
}
20 changes: 20 additions & 0 deletions app/Console/Commands/GoSub.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace App\Console\Commands;

use App\Facades\Go;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;

#[Signature('go:sub')]
#[Description('Listen for go engine for events.')]
class GoSub extends Command
{
public function handle(): void
{
$this->info('Listening to the go engine for events...');
Go::sub(fn (string $message) => $this->info("Received:\n$message"));
$this->info('Done listening.');
}
}
9 changes: 0 additions & 9 deletions app/Enums/NewsSource.php

This file was deleted.

20 changes: 20 additions & 0 deletions app/Facades/Go.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace App\Facades;

use App\Models\Bot;
use App\Services\GoService;
use Closure;
use Illuminate\Support\Facades\Facade;

/**
* @method static void pub(Bot|int $bot)
* @method static void sub(Closure<string> $message)
*/
class Go extends Facade
{
protected static function getFacadeAccessor(): string
{
return GoService::class;
}
}
18 changes: 0 additions & 18 deletions app/Facades/Rss.php

This file was deleted.

18 changes: 18 additions & 0 deletions app/Facades/S3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace App\Facades;

use App\Services\S3Service;
use Illuminate\Support\Facades\Facade;

/**
* @method static void del(string $key)
* @method static string url(string $key, float|int $ttl = 900)
*/
class S3 extends Facade
{
protected static function getFacadeAccessor(): string
{
return S3Service::class;
}
}
19 changes: 0 additions & 19 deletions app/Facades/Sqs.php

This file was deleted.

Loading
Loading