mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-05 21:42:21 +00:00
Use doctrine cache for tests
This commit is contained in:
parent
f37d1427a1
commit
a05be8abec
2 changed files with 12 additions and 3 deletions
|
@ -20,3 +20,10 @@ doctrine:
|
||||||
driver: pdo_sqlite
|
driver: pdo_sqlite
|
||||||
path: %kernel.root_dir%/../data/db/wallabag_test.sqlite
|
path: %kernel.root_dir%/../data/db/wallabag_test.sqlite
|
||||||
host: localhost
|
host: localhost
|
||||||
|
orm:
|
||||||
|
metadata_cache_driver:
|
||||||
|
type: service
|
||||||
|
id: filesystem_cache
|
||||||
|
query_cache_driver:
|
||||||
|
type: service
|
||||||
|
id: filesystem_cache
|
||||||
|
|
|
@ -6,6 +6,8 @@ parameters:
|
||||||
security.validator.user_password.class: Wallabag\CoreBundle\Security\Validator\WallabagUserPasswordValidator
|
security.validator.user_password.class: Wallabag\CoreBundle\Security\Validator\WallabagUserPasswordValidator
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# service_name:
|
# used for tests
|
||||||
# class: AppBundle\Directory\ClassName
|
filesystem_cache:
|
||||||
# arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
|
class: Doctrine\Common\Cache\FilesystemCache
|
||||||
|
arguments:
|
||||||
|
- %kernel.cache_dir%/doctrine/metadata
|
||||||
|
|
Loading…
Reference in a new issue