Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
prog:symfony:extensions:twig:twig [11/09/2022 17:59] thierry créée |
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 1: | Ligne 1: | ||
====== TWIG ====== | ====== TWIG ====== | ||
+ | ===== Prérequis ===== | ||
+ | * **Composer** doit être installé. | ||
+ | |||
+ | ===== Installation ===== | ||
+ | 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. | ||
+ | <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>>symfony composer req twig | ||
+ | Using version ^1.0 for symfony/twig-pack | ||
+ | ./composer.json has been updated | ||
+ | Running composer update symfony/twig-pack | ||
+ | Loading composer repositories with package information | ||
+ | Restricting packages listed in "symfony/symfony" to "5.4.*" | ||
+ | Updating dependencies | ||
+ | Lock file operations: 6 installs, 0 updates, 0 removals | ||
+ | - Locking symfony/translation-contracts (v2.5.2) | ||
+ | - Locking symfony/twig-bridge (v5.4.12) | ||
+ | - Locking symfony/twig-bundle (v5.4.8) | ||
+ | - Locking symfony/twig-pack (v1.0.1) | ||
+ | - Locking twig/extra-bundle (v3.4.0) | ||
+ | - Locking twig/twig (v3.4.2) | ||
+ | Writing lock file | ||
+ | Installing dependencies from lock file (including require-dev) | ||
+ | Package operations: 6 installs, 0 updates, 0 removals | ||
+ | - Installing twig/twig (v3.4.2): Extracting archive | ||
+ | - Installing symfony/translation-contracts (v2.5.2): Extracting archive | ||
+ | - Installing symfony/twig-bridge (v5.4.12): Extracting archive | ||
+ | - Installing symfony/twig-bundle (v5.4.8): Extracting archive | ||
+ | - Installing twig/extra-bundle (v3.4.0): Extracting archive | ||
+ | - Installing symfony/twig-pack (v1.0.1): Extracting archive | ||
+ | Generating optimized autoload files | ||
+ | 35 packages you are using are looking for funding. | ||
+ | Use the `composer fund` command to find out more! | ||
+ | |||
+ | Symfony operations: 2 recipes (7d52361e3d6ff318a7eb65e2e70140cc) | ||
+ | - Configuring symfony/twig-bundle (>=5.4): From github.com/symfony/recipes:main | ||
+ | - Configuring twig/extra-bundle (>=v3.4.0): From auto-generated recipe | ||
+ | Unpacking Symfony packs | ||
+ | - Unpacked symfony/twig-pack | ||
+ | Loading composer repositories with package information | ||
+ | Updating dependencies | ||
+ | Nothing to modify in lock file | ||
+ | Installing dependencies from lock file (including require-dev) | ||
+ | Package operations: 0 installs, 0 updates, 1 removal | ||
+ | - Removing symfony/twig-pack (v1.0.1) | ||
+ | Generating optimized autoload files | ||
+ | 34 packages you are using are looking for funding. | ||
+ | Use the `composer fund` command to find out more! | ||
+ | |||
+ | Run composer recipes at any time to see the status of your Symfony recipes. | ||
+ | |||
+ | Executing script cache:clear [OK] | ||
+ | Executing script assets:install public [OK] | ||
+ | |||
+ | No security vulnerability advisories found | ||
+ | |||
+ | What's next? | ||
+ | |||
+ | |||
+ | Some files have been created and/or updated to configure your new packages. | ||
+ | Please review, edit and commit them: these files are yours. | ||
+ | |||
+ | No security vulnerability advisories found | ||
+ | </code> | ||
+ | |||
+ | |||
+ | |||