File tree Expand file tree Collapse file tree 2 files changed +41
-2
lines changed Expand file tree Collapse file tree 2 files changed +41
-2
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ matrix:
2525 - php : 7.0
2626 env : TEST_COMMAND="composer test-ci" COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_VERSION=3.3.* COVERAGE=true
2727 - php : 7.0
28- env : TEST_COMMAND="phpunit" COMPOSER_FLAGS="--prefer-source" SYMFONY_VERSION="3.3.* phpunit/phpunit:^5.7"
28+ # We need `--prefer-source`, otherwise the `Doctrine\Tests\OrmTestCase` class won't be found.
29+ env : TEST_COMMAND="phpunit --testsuite doctrine" COMPOSER_FLAGS="--prefer-source" SYMFONY_VERSION="3.3.* phpunit/phpunit:^5.7"
2930 - php : 7.1
3031 env : SYMFONY_VERSION=4.0.*
3132
3233before_script :
3334 - composer require symfony/symfony:${SYMFONY_VERSION} --no-update
34- # This command must be run with `--prefer-source`, otherwise the `Doctrine\Tests\OrmTestCase` class won't be found.
3535 - composer update $COMPOSER_FLAGS
3636
3737script :
Original file line number Diff line number Diff line change @@ -48,3 +48,42 @@ servies:
4848# # Installing a PSR16 cache
4949
5050You may use any adapter from [PHP-cache.com](http://www.php-cache.com/en/latest/) or `symfony/cache`.
51+
52+ # # Using Symfony cache
53+
54+ Symfony 3.3 does not support SimpleCache, but fear not. You can use a bridge between PSR-6 and PSR-16. Install the
55+ [bridge](https://github.com/php-cache/simple-cache-bridge) by :
56+
57+ ` ` ` bash
58+ composer require cache/simple-cache-bridge
59+ ` ` `
60+
61+ Then register a service :
62+
63+ ` ` ` yaml
64+ # services.yml
65+ app.simple_cache:
66+ class: Cache\B ridge\S impleCache\S impleCacheBridge
67+ arguments: ['@app.cache.acme']
68+ ` ` `
69+
70+ Then configure the framework and the bundle.
71+
72+ ` ` ` yaml
73+ # config.yml
74+ framework:
75+ cache:
76+ app: cache.adapter.redis
77+ pools:
78+ app.cache.acme:
79+ adapter: cache.app
80+ default_lifetime: 600
81+
82+ bazinga_geocoder:
83+ providers:
84+ my_google_maps:
85+ factory: Bazinga\G eocoderBundle\P roviderFactory\G oogleMapsFactory
86+ cache: 'app.simple_cache'
87+ cache_lifetime: 3600
88+ ` ` `
89+
You can’t perform that action at this time.
0 commit comments