fix(SitemapSubscriber): Corrige génération URL absolue

This commit is contained in:
Serreau Jovann
2025-07-16 14:50:51 +02:00
parent af6502f139
commit e37110d9a7
5 changed files with 3 additions and 44 deletions

View File

@@ -100,7 +100,7 @@ deploy_application:
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- echo "Starting deployment stage..."
- ssh bot@35.204.191.160 "cd /var/www/mainframe/app && nohup sh ./update.sh"
- ssh bot@35.204.191.160 "cd /var/www/mainframe/app && git pull && nohup sh ./update.sh"
- echo "Application deployed successfully."
needs:
- analyse_code # Ce job dépend maintenant du job 'analyse_code'

View File

@@ -1,18 +0,0 @@
<?php
namespace App\Controller\Artemis;
use App\Attribute\Mainframe;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Attribute\Route;
class SecurityController extends AbstractController
{
#[Route(path: '/artemis',name: 'login',methods: 'GET')]
#[Mainframe(index: false,sitemap: false,sitemapPage: null)]
public function index(): JsonResponse
{
return$this->json([]);
}
}

View File

@@ -5,13 +5,14 @@ namespace App\Controller;
use App\Attribute\Mainframe;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class HomeController extends AbstractController
{
#[Route(path: '/',name: 'root',methods: 'GET')]
public function index(): JsonResponse
public function index(): Response
{
return$this->json([]);
}

View File

@@ -1,23 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Tests\Controller\Artemis;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class SecurityControllerTest extends WebTestCase
{
public function testLogin(): void
{
$client = static::createClient();
// Request a specific page
$crawler = $client->request('GET', '/artemis');
// Validate a successful response and some content
$this->assertResponseIsSuccessful();
$this->assertResponseHeaderSame('Content-Type', 'application/json');
}
}

View File

@@ -17,7 +17,6 @@ class HomeControllerTest extends WebTestCase
// Validate a successful response and some content
$this->assertResponseIsSuccessful();
$this->assertResponseHeaderSame('Content-Type', 'application/json');
}
}