Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSimon Coates
28,694 PointsHow can you install the Symfony HTTP_Foundation package with composer? Vague
Doesn't seem to accept obvious answers like 'composer install', 'composer.json', 'require', or 'symfony/http-foundation'. I removed the package in question completely from workspaces, and added it back into composer.json, then reran composer install. So i definitely know how to install the package in question, but i'm just not sure precisely what the question wants. It's probably something obvious and i'm just thinking about it wrong.
3 Answers
Umesh Ravji
42,386 PointsHi Simon, the answer to the question is
composer install symfony/http-foundation
Simon Coates
28,694 PointsThanks. The tutor for that video series included a composer.json file in the initial project files, so she just ran "composer install". I'd completely forgotten I could pass in the package directly.
Jen Drake
33,427 Pointscomposer require symfony/http-foundation
Rachel Nemati
98 PointsYeah the link provided in the question has an article that has the answer at the top but it was very subtle so I didn't see it. It did get on my nerves a little that they left it to the student to figure this out though.
Xheni Myrtaj
Courses Plus Student 2,636 PointsXheni Myrtaj
Courses Plus Student 2,636 Pointscomposer require symfony/http-foundation