// 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
Hello, no errors in this video? On reload every time we use HTTP client request with app:
cache.adapter.arrayHey @staff
What error did you get? It should just work :)
Cheers!
No errors, just got every refresh new request to API.
Oh, yes, that makes sense, the array cache adapter only works for the current request, every request starts with an empty cache because it uses an array to store things in memory. You need to use
cache.adapter.filesystemor any other cache system to store things permanentlyCheers!
i also noticed this and it's confusing because i thought i did something wrong so i wasted time debugging :-(
maybe add a note the chapter would be nice (SC should have used another adapter in the video) :)
Hey Danny,
Seems you missed this config. We changed the adapter to the array in the previous video explaining how it works... but in further videos, we will revert it back to the filesystem adapter again. So further it will be good, but for now we need array adapter for more experiments :)
Cheers!
"Houston: no signs of life"
Start the conversation!