feat: initialisation du projet
- Ajout des dépendances dans `composer.json` (Doctrine, Twig, Security, etc.). - Configuration de l’environnement de développement via `.env`. - Mise en place d’un modèle de base pour les assets avec `app.js` et `app.css`. - Création du fichier de configuration `asset_mapper.yaml`. - Ajout de la configuration Docker via `compose.yaml` (PostgreSQL, Mailer). - Ajout des fichiers de base pour les templates Twig (`base.html.twig`). - Mise à jour des ignores dans le fichier `.gitignore`. - Fichiers supplémentaires pour le cache, les tests et les bootstrap Symfony.
This commit is contained in:
21
bin/console
Executable file
21
bin/console
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use App\Kernel;
|
||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||
|
||||
if (!is_dir(dirname(__DIR__).'/vendor')) {
|
||||
throw new LogicException('Dependencies are missing. Try running "composer install".');
|
||||
}
|
||||
|
||||
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
|
||||
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
|
||||
}
|
||||
|
||||
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
|
||||
|
||||
return function (array $context) {
|
||||
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
||||
|
||||
return new Application($kernel);
|
||||
};
|
||||
4
bin/phpunit
Executable file
4
bin/phpunit
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
|
||||
Reference in New Issue
Block a user