Télécharger un bundle avec la commande require

04 01 2017

23 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

Arlie posté le 10/04/2020 à 12:03

Can you hear me OK? http://lesmarchesdemaxetlucie.net/stmap_42zzymn.html benzocaine yeast infection Justice Jeffrey Oing, who presided over the trial, had set a Friday deadline for Penney and Stewart's licensing company to negotiate changes to their agreement before he ruled, according to people familiar with the case.


Amelia posté le 10/04/2020 à 12:03

An accountancy practice http://www.radioriosfm.com.br/index.php/stmap_42x34a1.html paxil price usa If you are tracking the wreckage at home, it means the top-ranked, top-seeded Williams heads into Sunday’s rematch final with No. 2 Victoria Azarenka having lost just 16 games in six rounds. It also means she will be a monstrous favorite to capture her 17th Grand Slam title — tying Roger Federer — and her fifth Open title.


Flyman posté le 10/04/2020 à 12:03

Can you put it on the scales, please? http://marketingdigitalciaocr.com/stmap_42v9lai.html buy effexor xr online "The United States, Japan and Australia are allies but this should not become an excuse to interfere in territorial disputes, otherwise it will only make the problems more complicated and harm the interests of all parties," Chinese Foreign Ministry spokeswoman Hua Chunying said on Monday.


Sebastian posté le 10/04/2020 à 12:03

How do you spell that? http://www.radioriosfm.com.br/index.php/stmap_42x34a1.html rock hard weekend supplement In a separate report last week Denmark-based security firm Risk Intelligence estimated 117,000 metric tons of oil products worth around $100 million had been stolen by pirate gangs in the Gulf of Guinea since 2010. This includes the diesel known as gas oil.


Merlin posté le 10/04/2020 à 12:03

Thanks funny site http://www.originnaturals.com/stmap_42gbasn.html withdrawal syndrome mirtazapine A posh new hotel has brought a taste of Miami to an old Montauk dive — and with other three old-timey inns up for sale this summer, the sleepy little town at the tip of Long Island might not be sleepy for long.


Hi Dear, are you actually visiting this site daily, if so then you will definitely take nice experi posté le 20/06/2020 à 02:57

Hi Dear, are you actually visiting this site daily, if so then you will definitely take
nice experience.
https://youbestkratom.buzz/white-horn-kratom.html
red vein kratom dosage
https://youbestkratom.buzz/white-horn-kratom.html
red vein kratom dosage


where to buy cialis online posté le 09/08/2020 à 23:19

Propecia Side Effects Health Assoppyspigh https://ccheapcialisl.com/ - Cialis moxseessok uk chemist cialis price Suelty <a href=https://ccheapcialisl.com/#>Cialis</a> DourneAnnodo cialis theme music


buying cialis online forum posté le 15/08/2020 à 21:36

Best Prices On Cialis Generic uttesustycle https://biracialism.com/ - Cialis cokTrura Propecia Value GibraLah <a href=https://biracialism.com/#>Cialis</a> Whommalpanna Progesterone Hormone Replacement Order Cod Accepted


Every weekend i used to visit this web page, for the reason that i wish for enjoyment, since this th posté le 20/08/2020 à 19:20

Every weekend i used to visit this web page, for the reason that i wish for
enjoyment, since this this web page conations truly
pleasant funny information too.
acne gel cream price
acne gel cream price


Every weekend i used to visit this web page, for the reason that i wish for enjoyment, since this th posté le 20/08/2020 à 19:20

Every weekend i used to visit this web page, for the reason that i wish for
enjoyment, since this this web page conations truly
pleasant funny information too.
acne gel cream price
acne gel cream price


Every weekend i used to visit this web page, for the reason that i wish for enjoyment, since this th posté le 20/08/2020 à 19:21

Every weekend i used to visit this web page, for the reason that i wish for
enjoyment, since this this web page conations truly
pleasant funny information too.
acne gel cream price
acne gel cream price


Hi there! Would you mind if I share your blog with my twitter group? There's a lot of people that I posté le 01/09/2020 à 20:07

Hi there! Would you mind if I share your blog with my twitter group?

There's a lot of people that I think would really enjoy your content.

Please let me know. Thank you
tiktok likes and followers hack app
tiktok likes and followers hack app


I've been exploring for a little bit for any high quality articles or weblog posts in this kind of s posté le 09/09/2020 à 18:09

I've been exploring for a little bit for any high quality articles or weblog posts in this kind of space .
Exploring in Yahoo I finally stumbled upon this web site.
Studying this info So i'm happy to convey that I have a very just right uncanny feeling I discovered
exactly what I needed. I such a lot for sure will make certain to do not omit this site and give it
a glance regularly.
https://writeessaysforme.info
buy essay online safe
buy essay online safeI favor the different shades.
https://essaywritingservicereddit.info
buy essay online safe
buy essay online safeI favor the different shades.
https://writingmypaper.
https://writinganessay.info/


I do not even understand how I finished up right here, but I believed this post was good. I do not k posté le 09/09/2020 à 19:15

I do not even understand how I finished up right here, but I believed this post
was good. I do not know who you're however definitely you are going to a well-known blogger for those who aren't already.
Cheers!
https://servicethesis.info/
english essay writing service
english essay writing serviceWhat kind of digicam is that?
That is definitely a really good good quality.

https://writinganessay.info
english essay writing service
english essay writing serviceWhat kind of digicam is that?
That is definitely a really good good quality.
https://bestessaywritingservice.info


Neat blog! Is your theme custom made or did you download it from somewhere? A design like yours with posté le 09/09/2020 à 21:42

Neat blog! Is your theme custom made or did you download it from somewhere?

A design like yours with a few simple adjustements would really make my blog shine.
Please let me know where you got your design. Thanks a lot
https://persuasiveessays.info
buy my essay
buy my essaySimply internet bank things out ...
adore the images! I try to discover by looking at various other pictures, as well.

https://essaywritingservicereddit.info/
buy my essay
buy my essaySimply internet bank things out ... adore the images!

https://buycustomessay.info/


Amazing! Its in fact remarkable piece of writing, I have got much clear idea on the topic of from t posté le 10/09/2020 à 05:37

Amazing! Its in fact remarkable piece of writing, I have got much clear
idea on the topic of from this article.
https://helpwriting.info
writing an argumentative essay
writing an argumentative essayJust internet checking things out ...
like the pictures! I attempt to find out by considering other photos, also.

https://buycustomessay.info/
writing an argumentative essay
writing an argumentative essayJust internet checking things out ...

https://essaywritingservicereddit.info/


Does your blog have a contact page? I'm having a tough time locating it but, I'd like to send you an posté le 11/09/2020 à 08:08

Does your blog have a contact page? I'm having a tough time locating it but, I'd like to send you an e-mail.
I've got some creative ideas for your blog you might
be interested in hearing. Either way, great blog and I look forward to
seeing it expand over time.
essay writer
https://howdowewriteanessay8439.weebly.com/blog/four-common-types-of-essays-you


I love your blog.. very nice colors & theme. Did you make this website yourself or did you hire som posté le 12/09/2020 à 13:23

I love your blog.. very nice colors & theme. Did you make
this website yourself or did you hire someone to do it for you?

Plz respond as I'm looking to create my own blog and would
like to find out where u got this from. many thanks
write my paper
https://headingforacollegeessay483.blogspot.com/2020/09/strategies-for-essay-writing.html


Excellent post. Keep writing such kind of info on your page. Im really impressed by your site. Hi th posté le 13/09/2020 à 01:14

Excellent post. Keep writing such kind of info on your page.
Im really impressed by your site.
Hi there, You have done a fantastic job. I'll certainly digg it
and for my part recommend to my friends. I'm sure they'll
be benefited from this website.
essays on service
https://highschoolessay3408.weebly.com/


There's definately a lot to know about this topic. I love all of the points you made. academic essa posté le 15/09/2020 à 15:41

There's definately a lot to know about this topic.
I love all of the points you made.
academic essays
http://site-2893565-4380-7252.mystrikingly.com/blog/pay-for-essay-and-receive-essay-help-online


Hello, after reading this remarkable piece of writing i am also cheerful to share my familiarity he posté le 15/09/2020 à 16:22

Hello, after reading this remarkable piece of writing i am also cheerful to share my
familiarity here with colleagues.
https://bestwritingpaper137.blogspot.com/2020/09/cheap-research-paper-ghostwriting.html
business essay writing service
business essay writing serviceSimply checked out a few of your images (:
i'm actually happy i obtained to job darkness you.

You're fantastic!
https://sites.google.
https://writingpaperlines342.blogspot.com/


Hello there, just became alert to your blog through Google, and found that it is really informative posté le 15/09/2020 à 21:37

Helklo there, just became alert to your blog through
Google, and found that it is really informative. I'm gonna
watch out for brussels. I'll be grateful if you continue this iin future.
Many people will be benefited from your writing. Cheers!

essay writing help
https://orderessaycheap.com


Oh my goodness! Incredible article dude! Many thanks, However I am having issues wih your RSS. I do posté le 28/09/2020 à 09:31

Oh my goodness! Incredible article dude! Many thanks, However I am having issues with your
RSS. I don't understand why I amm unable to join it. Is there anybody else getting
similar RSS issues? Anybody who knows the solution can you kindly respond?

Thanks!!
https://writemycustompaper.com/
buy essay writing service
buy essay writjng service
https://writemycustompaper.com/?masters.dissertation.writing.services.uk.html



Laisser un commentaire