Télécharger un bundle avec la commande require

04 01 2017

13 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

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>


секс порно русское домашнее posté le 14/02/2024 à 05:09

I reckon something truly special in this website.
My website: <a href="https://narodnoeporno.pro/categories/iznasilovaniya/">жестко насилуют</a>


сперма в попе posté le 16/02/2024 à 01:01

Thanks-a-mundo for the post.Really thank you! Awesome.
My website: <a href="https://theporndude.in/cat-porno-kasting/">порно кастинг девушек</a>


Японское порно posté le 16/02/2024 à 20:37

Major thanks for the article post. Much thanks again.
My website: <a href="https://pornobomba.top/categories/porno-studentov/">порно ебут студентов</a>


смотреть страпон posté le 17/02/2024 à 04:15

Thanks-a-mundo for the post.Really thank you! Awesome.
My website: <a href="https://theporndude.in/cat-porno-s-rizhimi-devushkami/">ебля рыжих</a>


домашний анальный секс posté le 17/02/2024 à 17:28

Major thanks for the article post. Much thanks again.
My website: <a href="https://pornobomba.top/categories/krempai/">ганг банг кремпай</a>


порно анал студенты posté le 17/02/2024 à 23:53

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>


жесткое групповое изнасилование posté le 18/02/2024 à 17:49

Major thanks for the article post. Much thanks again.
My website: <a href="https://narodnoeporno.pro/categories/gruppovoe-porno/">секс видео групповуха</a>


секс изнасилование posté le 19/02/2024 à 00:01

I got what you intend,bookmarked, very decent website.
My website: <a href="https://pornobomba.top/categories/anilingus/">лижет очко видео</a>


жестко выебал сестру posté le 19/02/2024 à 18:42

A round of applause for your article. Much thanks again.
My website: <a href="https://pornobomba.top/categories/pyanie/">секс бухая</a>


секс с волосатой зрелой posté le 20/02/2024 à 01:03

My website: <a href="https://theporndude.in/cat-anal-s-hudimi/">анал с худой зрелкой</a>


русское порно со зрелыми posté le 21/02/2024 à 05:31

Very good post.Really looking forward to read more. Great.
My website: <a href="https://narodnoeporno.pro/categories/porno-s-sestroi/">порно фильм сестра</a>


порно насильно posté le 21/02/2024 à 10:43

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>



Laisser un commentaire