Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
prog:symfony:extensions:twig:twig [11/09/2022 18:13] thierry |
prog:symfony:extensions:twig:twig [01/11/2022 17:53] (Version actuelle) thierry ↷ Page déplacée de prog:symfony:extensions:twig à prog:symfony:extensions:twig:twig |
||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Dans le répertoire du projet lancer la commande : ''composer require symfony/twig-pack'' | + | Dans le répertoire du projet lancer la commande : ''symfony composer req twig'' |
Cette commande créera les dossiers et fichiers nécessaires au templating. | Cette commande créera les dossiers et fichiers nécessaires au templating. | ||
<note warning>Attention a ne pas utiliser la commande ''composer require twig/twig'' qui ne créera pas la structure de dossiers et fichiers utiles</note> | <note warning>Attention a ne pas utiliser la commande ''composer require twig/twig'' qui ne créera pas la structure de dossiers et fichiers utiles</note> | ||
- | <code>>composer require symfony/twig-pack | + | <code>>symfony composer req twig |
Using version ^1.0 for symfony/twig-pack | Using version ^1.0 for symfony/twig-pack | ||
./composer.json has been updated | ./composer.json has been updated | ||
Ligne 15: | Ligne 15: | ||
Restricting packages listed in "symfony/symfony" to "5.4.*" | Restricting packages listed in "symfony/symfony" to "5.4.*" | ||
Updating dependencies | Updating dependencies | ||
- | Lock file operations: 5 installs, 0 updates, 0 removals | + | Lock file operations: 6 installs, 0 updates, 0 removals |
- Locking symfony/translation-contracts (v2.5.2) | - Locking symfony/translation-contracts (v2.5.2) | ||
- Locking symfony/twig-bridge (v5.4.12) | - Locking symfony/twig-bridge (v5.4.12) | ||
Ligne 21: | Ligne 21: | ||
- Locking symfony/twig-pack (v1.0.1) | - Locking symfony/twig-pack (v1.0.1) | ||
- Locking twig/extra-bundle (v3.4.0) | - Locking twig/extra-bundle (v3.4.0) | ||
+ | - Locking twig/twig (v3.4.2) | ||
Writing lock file | Writing lock file | ||
Installing dependencies from lock file (including require-dev) | Installing dependencies from lock file (including require-dev) | ||
- | Package operations: 5 installs, 0 updates, 0 removals | + | Package operations: 6 installs, 0 updates, 0 removals |
- | - Downloading symfony/twig-bridge (v5.4.12) | + | - Installing twig/twig (v3.4.2): Extracting archive |
- Installing symfony/translation-contracts (v2.5.2): Extracting archive | - Installing symfony/translation-contracts (v2.5.2): Extracting archive | ||
- Installing symfony/twig-bridge (v5.4.12): Extracting archive | - Installing symfony/twig-bridge (v5.4.12): Extracting archive | ||
Ligne 31: | Ligne 32: | ||
- Installing symfony/twig-pack (v1.0.1): Extracting archive | - Installing symfony/twig-pack (v1.0.1): Extracting archive | ||
Generating optimized autoload files | Generating optimized autoload files | ||
- | 37 packages you are using are looking for funding. | + | 35 packages you are using are looking for funding. |
Use the `composer fund` command to find out more! | Use the `composer fund` command to find out more! | ||
- | Symfony operations: 2 recipes (4eb4f16bd36d98ef4272f7bd47220487) | + | Symfony operations: 2 recipes (7d52361e3d6ff318a7eb65e2e70140cc) |
- Configuring symfony/twig-bundle (>=5.4): From github.com/symfony/recipes:main | - Configuring symfony/twig-bundle (>=5.4): From github.com/symfony/recipes:main | ||
- Configuring twig/extra-bundle (>=v3.4.0): From auto-generated recipe | - Configuring twig/extra-bundle (>=v3.4.0): From auto-generated recipe | ||
Ligne 46: | Ligne 47: | ||
- Removing symfony/twig-pack (v1.0.1) | - Removing symfony/twig-pack (v1.0.1) | ||
Generating optimized autoload files | Generating optimized autoload files | ||
- | 36 packages you are using are looking for funding. | + | 34 packages you are using are looking for funding. |
Use the `composer fund` command to find out more! | Use the `composer fund` command to find out more! | ||