Add info about cache adapter to README. Added tests for cache and ftp

adapter.
This commit is contained in:
l3l0
2012-09-05 20:29:39 +02:00
parent dc98b98d3d
commit 0f3c770a24
3 changed files with 90 additions and 18 deletions

View File

@@ -1,11 +1,30 @@
knp_gaufrette:
adapters:
foo:
foo_local:
local:
directory: %kernel.root_dir%
create: true
foo_ftp:
ftp:
host: example.com
username: user
password: pass
directory: /example/ftp
create: true
mode: FTP_BINARY
foo_cache:
cache:
source: foo_ftp
cache: foo_local
ttl: 7200
filesystems:
foo:
adapter: foo
adapter: foo_local
alias: foo_filesystem
cache:
adapter: foo_cache
alias: cache_filesystem
ftp:
adapter: foo_ftp
alias: ftp_filesystem