Télécharger un bundle avec la commande require
04 01 2017
14 commentaires
Auparavant pour télécharger un bundle, on devait se rendre sur KnpBundles, suivre le lien Github, lire sa documentation et enfin inscrire dans son composer.json la ligne correspondant à la dépendance en précisant la version que l'on voulait. Par exemple dans le composer.json dans require:
"friendsofsymfony/rest-bundle" : "dev-master"
Puis on devait mettre à jour le composer.phar en tapant en ligne de commande:
$ php composer.phar update "friendsofsymfony/rest-bundle"
Aujourd'hui nous vous proposons de télécharger la version du bundle compatible avec votre version de Symfony directement avec la commande require simplement en tapant en ligne de commande:
$ composer require friendsofsymfony/rest-bundle
Ceci aura pour effet d'inscrire dans votre composer.json la dépendance et de l'installer dans les vendors en un rien de temps !
Notez que la commande require téléchargera une version différente en fonction de votre version de Symfony. Par exemple pour un Symfony2.8.15 Composer téléchargera cette version du bundle : "friendsofsymfony/rest-bundle": "^1.7" alors que pour un Symfony3.1.8 Composer téléchargera une version plus récente ; "friendsofsymfony/rest-bundle": "^2.1"
Il faut maintenant activer le bundle dans le noyau de Symfony en rajoutant cette ligne dans le appKernel.php:
new FOS\RestBundle\FOSRestBundle(),
Sachez également que si vous décidez d'installer RestBundle, vous aurez besoin d'un serializer d'objet en installant un bundle comme JMSSerializerBundle ou alors d'activer l'outil de sérialisation présent par défaut sur Symfony.
catégorie: Composer
Commentaires
I reckon something truly special in this website.
My website: <a href="https://narodnoeporno.pro/categories/iznasilovaniya/">жестко насилуют</a>
Thanks-a-mundo for the post.Really thank you! Awesome.
My website: <a href="https://theporndude.in/cat-porno-kasting/">порно кастинг девушек</a>
Major thanks for the article post. Much thanks again.
My website: <a href="https://pornobomba.top/categories/porno-studentov/">порно ебут студентов</a>
Thanks-a-mundo for the post.Really thank you! Awesome.
My website: <a href="https://theporndude.in/cat-porno-s-rizhimi-devushkami/">ебля рыжих</a>
Major thanks for the article post. Much thanks again.
My website: <a href="https://pornobomba.top/categories/krempai/">ганг банг кремпай</a>
As a Newbie, I am continuously exploring online for articles that can be of assistance to me.
My website: <a href="https://pornobomba.top/categories/anal-s-zhenoi/">жену в попку</a>
Major thanks for the article post. Much thanks again.
My website: <a href="https://narodnoeporno.pro/categories/gruppovoe-porno/">секс видео групповуха</a>
I got what you intend,bookmarked, very decent website.
My website: <a href="https://pornobomba.top/categories/anilingus/">лижет очко видео</a>
A round of applause for your article. Much thanks again.
My website: <a href="https://pornobomba.top/categories/pyanie/">секс бухая</a>
My website: <a href="https://theporndude.in/cat-anal-s-hudimi/">анал с худой зрелкой</a>
Very good post.Really looking forward to read more. Great.
My website: <a href="https://narodnoeporno.pro/categories/porno-s-sestroi/">порно фильм сестра</a>
Thanks for sharing, this is a fantastic blog post.Really thank you! Much obliged.
My website: <a href="https://theporndude.in/cat-porno-molodih/">порно молодежные</a>
5 Myths About Prettiest Pornstars That You Should Stay Clear Of british porn stars
xxx (imoodle.win)
Private Society posté le 13/02/2024 à 21:06
Thanks-a-mundo for the post.Really thank you! Awesome.
My website: <a href="https://theporndude.in/cat-porno-v-chulkah/">порно видео в чулках</a>