fix: moves monitor logic into own directory

This commit is contained in:
2025-05-09 15:03:42 -05:00
parent 6c2cd7510f
commit 3724bcbb16
30 changed files with 76 additions and 131 deletions

View File

@@ -10,6 +10,7 @@ use Carbon\Carbon;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Mercure\HubInterface;
use Symfony\Component\Mercure\Update;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Contracts\Cache\CacheInterface;
use Symfony\Contracts\Cache\ItemInterface;
@@ -73,10 +74,7 @@ final class TorrentioController extends AbstractController
);
$cache->delete($cacheId);
$cacheId = sprintf("page.%s.%s", "tvshows", $input->tmdbId);
$cache->delete($cacheId);
$this->hub->publish(new \Symfony\Component\Mercure\Update(
$this->hub->publish(new Update(
'alerts',
$this->renderer->render('broadcast/Alert.html.twig', [
'alert_id' => uniqid(),