diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 76e81941140ae078f1cf3a375e210575bc51f48b..0000000000000000000000000000000000000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,40 +0,0 @@ -stages: - - install - - test - - deploy # Optionnel, à activer si nécessaire - -variables: - PHP_VERSION: "8.2" - COMPOSER_CACHE_DIR: "$CI_PROJECT_DIR/var/cache/composer" - -cache: - key: composer - paths: - - vendor/ - - var/cache/composer/ - -install_dependencies: - stage: install - image: php:$PHP_VERSION - script: - - apt-get update && apt-get install -y unzip git - - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer - - composer install --no-interaction --prefer-dist - artifacts: - paths: - - vendor/ - -run_tests: - stage: test - image: php:$PHP_VERSION - script: - - ./bin/phpunit - -# Déploiement (à adapter selon ton serveur) -deploy: - stage: deploy - only: - - main # Modifier selon la branche utilisée - script: - - echo "Déploiement en cours..." - # Ajouter ici les commandes pour le déploiement diff --git a/compose.yaml b/compose.yaml index 70d3c4974ea6b7e17843318761d27f19163c54b7..f5f03db1724fda75d9db198e7c517b5cd789b05a 100644 --- a/compose.yaml +++ b/compose.yaml @@ -15,7 +15,7 @@ services: build: ./docker/nginx volumes: - ./public:/var/www/public:delegated - - ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf + - ./docker/nginx/nginx.conf:/etc/nginx/default.conf ports: - "8000:80" depends_on: #sinon on sera pas interprété les requêtes diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index d27b8e6955fa29354cb6a6009d9bb88a78c655c7..0c644652759344c179e556880cbc670ef361ad1c 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -1,7 +1,6 @@ # l'image php c'est une image minimaliste qui ne va inclure toutes les extenctions importantes pour fonctionner avec Symphony # par exemple Ctype, iconv, simpleXML, Session .. - -FROM PHP:8.3-fpm-alpine +FROM php:8.3-fpm-alpine # install dependencies ' permet d installer des differentes dependances ' RUN apk --no-cache add curl git wget bash dpkg diff --git a/migrations/Version20250312002806.php b/migrations/Version20250312002806.php new file mode 100644 index 0000000000000000000000000000000000000000..3be21036e681aec5db07d85557bb1a9f4095312b --- /dev/null +++ b/migrations/Version20250312002806.php @@ -0,0 +1,33 @@ +<?php + +declare(strict_types=1); + +namespace DoctrineMigrations; + +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; + +/** + * Auto-generated Migration: Please modify to your needs! + */ +final class Version20250312002806 extends AbstractMigration +{ + public function getDescription(): string + { + return ''; + } + + public function up(Schema $schema): void + { + // this up() migration is auto-generated, please modify it to your needs + $this->addSql('CREATE TABLE `user` (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles JSON NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, is_verified TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_IDENTIFIER_EMAIL (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE messenger_messages (id BIGINT AUTO_INCREMENT NOT NULL, body LONGTEXT NOT NULL, headers LONGTEXT NOT NULL, queue_name VARCHAR(190) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', available_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', delivered_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_75EA56E0FB7336F0 (queue_name), INDEX IDX_75EA56E0E3BD61CE (available_at), INDEX IDX_75EA56E016BA31DB (delivered_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('DROP TABLE `user`'); + $this->addSql('DROP TABLE messenger_messages'); + } +} diff --git a/src/Controller/RegistrationController.php b/src/Controller/RegistrationController.php index 3e8a71f61a16f3b212e21d48fddb82890a69996a..77c00012245561c7b34bacf8985763f5180f5205 100644 --- a/src/Controller/RegistrationController.php +++ b/src/Controller/RegistrationController.php @@ -89,6 +89,6 @@ class RegistrationController extends AbstractController // @TODO Change the redirect on success and handle or remove the flash message in your templates $this->addFlash('success', 'Your email address has been verified.'); - return $this->redirectToRoute('app_register'); + return $this->redirectToRoute('app_login'); } }