feat: movie monitoring
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Download\Action\Command\AddMovieMonitorCommand;
|
||||
use App\Download\Action\Command\MonitorMovieCommand;
|
||||
use App\Download\Action\Handler\AddMovieMonitorHandler;
|
||||
use App\Download\Action\Handler\MonitorMovieHandler;
|
||||
use App\Download\Action\Input\AddMovieMonitorInput;
|
||||
use App\Download\Action\Input\DownloadMediaInput;
|
||||
use App\Download\Framework\Repository\DownloadRepository;
|
||||
@@ -19,6 +20,18 @@ class DownloadController extends AbstractController
|
||||
private MessageBusInterface $bus,
|
||||
) {}
|
||||
|
||||
#[Route('/test', name: 'app_test')]
|
||||
public function test(
|
||||
MonitorMovieHandler $handler,
|
||||
) {
|
||||
$command = new MonitorMovieCommand(41);
|
||||
$handler->handle($command);
|
||||
return $this->json([
|
||||
'status' => 200,
|
||||
'message' => $command
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/download', name: 'app_download', methods: ['POST'])]
|
||||
public function download(
|
||||
DownloadMediaInput $input,
|
||||
|
||||
Reference in New Issue
Block a user