// composer.json
{
"require": {
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"knplabs/knp-time-bundle": "^2.2", // v2.4.0
"php-cs-fixer/shim": "^3.46", // v3.46.0
"phpdocumentor/reflection-docblock": "^5.3", // 5.3.0
"phpstan/phpdoc-parser": "^1.25", // 1.25.0
"symfony/asset": "7.0.*", // v7.0.3
"symfony/asset-mapper": "7.0.*", // v7.0.2
"symfony/console": "7.0.*", // v7.0.2
"symfony/dotenv": "7.0.*", // v7.0.2
"symfony/flex": "^2", // v2.4.3
"symfony/framework-bundle": "7.0.*", // v7.0.2
"symfony/http-client": "7.0.*", // v7.0.2
"symfony/monolog-bundle": "^3.0", // v3.10.0
"symfony/property-access": "7.0.*", // v7.0.0
"symfony/property-info": "7.0.*", // v7.0.0
"symfony/runtime": "7.0.*", // v7.0.0
"symfony/serializer": "7.0.*", // v7.0.2
"symfony/stimulus-bundle": "^2.13", // v2.13.3
"symfony/twig-bundle": "7.0.*", // v7.0.0
"symfony/ux-turbo": "^2.13", // v2.13.2
"symfony/yaml": "7.0.*", // v7.0.0
"symfonycasts/tailwind-bundle": "^0.7.1", // v0.7.1
"twig/extra-bundle": "^2.12|^3.0", // v3.8.0
"twig/twig": "^2.12|^3.0" // v3.8.0
},
"require-dev": {
"symfony/debug-bundle": "7.0.*", // v7.0.0
"symfony/maker-bundle": "^1.52", // v1.53.0
"symfony/stopwatch": "7.0.*", // v7.0.0
"symfony/web-profiler-bundle": "7.0.*" // v7.0.2
}
}
6 Comments
the http client is already there in an older version in the video
Hey Fpf,
Good catch! Yes, seems it was already installed but as an indirect dependency, i.e. dependency of another dependency :) It's a good practice to add it as a direct dependency to your composer.json as soon as you start using that package in your code directly, and that's exactly what we did in this chapter. So, it is still all good :)
Cheers!
This video references "Serializer" as the previous video; however, the last video was KnpTimeBundle. Am I missing a video?
Hey @Danzar
Yes, although the implementation was done in the previous tutorial
Cheers!
how is that http_client is an interface but it can be used as object ?
Hey @John-S
We type-hint the controller's argument for the
HTTPClientInterfacebut under the hood, Symfony Container gives you an object of that interface. If you check thesymfony/http-clientcomponent, you'll find that there are a few implementations of the interface.Cheers!
"Houston: no signs of life"
Start the conversation!