Update readme
This commit is contained in:
parent
5e80045307
commit
1a7ee95b0d
|
@ -3,6 +3,14 @@ Gaufrette Bundle
|
||||||
|
|
||||||
Provides a [Gaufrette][gaufrette-homepage] integration for your Symfony projects.
|
Provides a [Gaufrette][gaufrette-homepage] integration for your Symfony projects.
|
||||||
|
|
||||||
|
About Gaufrette
|
||||||
|
---------------
|
||||||
|
|
||||||
|
Gaufrette is a PHP 5.3+ library providing a filesystem abstraction layer.
|
||||||
|
This abstraction layer permits you to develop your applications without the need to know were all their medias will be stored and how.
|
||||||
|
|
||||||
|
Documentation is available the [official page of Gaufrette][gaufrette-homepage].
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
@ -132,13 +140,13 @@ Almost as simple as the **local** adapter, but it encodes key to avoid having to
|
||||||
### Exemple
|
### Exemple
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
# app/config/config.yml
|
# app/config/config.yml
|
||||||
knplabs_gaufrette:
|
knplabs_gaufrette:
|
||||||
adapters:
|
adapters:
|
||||||
foo:
|
foo:
|
||||||
safe_local:
|
safe_local:
|
||||||
directory: /path/to/my/filesystem
|
directory: /path/to/my/filesystem
|
||||||
create: true
|
create: true
|
||||||
```
|
```
|
||||||
|
|
||||||
## Service (service)
|
## Service (service)
|
||||||
|
@ -152,12 +160,12 @@ Allows you to use a user defined adapter service.
|
||||||
### Exemple
|
### Exemple
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
# app/config/config.yml
|
# app/config/config.yml
|
||||||
knplabs_gaufrette:
|
knplabs_gaufrette:
|
||||||
adapters:
|
adapters:
|
||||||
foo:
|
foo:
|
||||||
service:
|
service:
|
||||||
id: my.adapter.service
|
id: my.adapter.service
|
||||||
```
|
```
|
||||||
|
|
||||||
## In Memory (in\_memory)
|
## In Memory (in\_memory)
|
||||||
|
@ -173,17 +181,17 @@ The `files` is an array of files where each file is a sub-array having the `cont
|
||||||
### Exemple
|
### Exemple
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
# app/config/config.yml
|
# app/config/config.yml
|
||||||
knplabs_gaufrette:
|
knplabs_gaufrette:
|
||||||
adapters:
|
adapters:
|
||||||
foo:
|
foo:
|
||||||
in_memory:
|
in_memory:
|
||||||
files:
|
files:
|
||||||
'file1.txt': ~
|
'file1.txt': ~
|
||||||
'file2.txt':
|
'file2.txt':
|
||||||
content: Some content
|
content: Some content
|
||||||
checksum: abc1efg2hij3
|
checksum: abc1efg2hij3
|
||||||
mtime: 123456890123
|
mtime: 123456890123
|
||||||
```
|
```
|
||||||
|
|
||||||
[gaufrette-homepage]: https://github.com/knplabs/Gaufrette
|
[gaufrette-homepage]: https://github.com/knplabs/Gaufrette
|
||||||
|
|
Loading…
Reference in New Issue
Block a user