File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -44,16 +44,23 @@ jobs:
44
44
cd ../_checker
45
45
composer install
46
46
47
+ - name : Install test application
48
+ if : ${{ steps.find-files.outputs.files }}
49
+ run : |
50
+ git clone -b ${{ github.base_ref }} --depth 5 --single-branch https://github.com/symfony-docs-tools/symfony-application.git ../_sf_app
51
+ cd ../_sf_app
52
+ composer update
53
+
47
54
- name : Generate baseline
48
55
if : ${{ steps.find-files.outputs.files }}
49
56
run : |
50
57
CURRENT=$(git rev-parse HEAD)
51
58
git checkout -m ${{ github.base_ref }}
52
- ../_checker/code-block-checker.php verify:docs `pwd` ${{ steps.find-files.outputs.files }} --generate-baseline=baseline.json
59
+ ../_checker/code-block-checker.php verify:docs `pwd` ${{ steps.find-files.outputs.files }} --generate-baseline=baseline.json --symfony-application=`realpath ../_sf_app`
53
60
git checkout -m $CURRENT
54
61
cat baseline.json
55
62
56
63
- name : Verify examples
57
64
if : ${{ steps.find-files.outputs.files }}
58
65
run : |
59
- ../_checker/code-block-checker.php verify:docs `pwd` ${{ steps.find-files.outputs.files }} --baseline=baseline.json --output-format=github
66
+ ../_checker/code-block-checker.php verify:docs `pwd` ${{ steps.find-files.outputs.files }} --baseline=baseline.json --output-format=github --symfony-application=`realpath ../_sf_app`
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ The following example shows a typical usage of the cache::
15
15
// The callable will only be executed on a cache miss.
16
16
$value = $pool->get('my_cache_key', function (ItemInterface $item) {
17
17
$item->expiresAfter(3600);
18
- 'abc'
18
+
19
19
// ... do some HTTP request or heavy computations
20
20
$computedValue = 'foobar';
21
21
@@ -63,7 +63,7 @@ adapter (template) they use by using the ``app`` and ``system`` key like:
63
63
64
64
# config/packages/cache.yaml
65
65
framework :
66
- cache :
66
+ caxche :
67
67
app : cache.adapter.filesystem
68
68
system : cache.adapter.system
69
69
You can’t perform that action at this time.
0 commit comments