KnpGaufretteBundle/Resources/docs/adapters/safe_local.md

21 lines
498 B
Markdown
Raw Normal View History

2017-01-16 13:00:11 +00:00
# Safe Local Adapter
Almost as simple as the **local** adapter, but it encodes key to avoid having to deal with the directories structure.
## Parameters
* `directory` The directory of the filesystem *(required)*
* `create` Whether to create the directory if it does not exist *(default true)*
## Example
``` yaml
# app/config/config.yml
knp_gaufrette:
adapters:
foo:
safe_local:
directory: /path/to/my/filesystem
create: true
```