- Création du projet Symfony (fait):
symfony new loc-car-api --version=6.4
- Installation de doctrine symfony/orm-pack (fait)
composer require symfony/orm-pack
- Installation orm-fixtures (fait)
composer require --dev orm-fixtures
3.1 Installation symfony/asset (fait)
composer require symfony/asset
- Installation du MakerBundle (fait) :
composer require symfony/maker-bundle --dev
- Installation du profiler (fait) :
composer require --dev profiler
- Installer symfony/security-bundle (fait)
composer require symfony/security-bundle
- Installation API Platform (fait) :
composer require api-platform/core
- Installer Password-hasher Bundle (fait) :
composer require symfony/password-hasher
- Installer JWT Authentication Bundle : https://api-platform.com/docs/core/jwt/
composer require lexik/jwt-authentication-bundle
symfony console lexik:jwt:check-config
symfony console lexik:jwt:generate-keypair
symfony console lexik:jwt:generate-token
composer require fakerphp/faker
symfony console doctrine:database:create
symfony console make:user
symfony console make:entity vehicl
symfony console make:entity Rental
symfony console make:entity Payment
symfony console make:entity Agency
symfony console make:entity VehicleAgency
symfony console make:migration
symfony console doctrine:migrations:migrate
Pour hasher le mot de passge du 1ère admin
symfony console security:hash-password
security: 'is_granted("ROLE_USER")'