Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/vendor/bt51/gaufrette-serviceprovider
Julio Montoya 5836fa5f19 Updating vendors 12 years ago
..
example Updating vendors 12 years ago
src/Bt51/Silex/Provider/GaufretteServiceProvider Updating vendors 12 years ago
tests Updating vendors 12 years ago
LICENSE Updating vendors 12 years ago
README.md Updating vendors 12 years ago
composer.json Updating vendors 12 years ago
phpunit.xml.dist Updating vendors 12 years ago

README.md

GaufretteServiceProvider

The GaufretteServiceProvider provides the "Gaufrette" library for silex.

Installation

Create a composer.json your project

{
    "require": {
        "bt51/gaufrette-serviceprovider": "dev-master"
    }
}

Read more on composer here: http://getcomposer.org

Parameters

  • gaufrette.adapter.class: The filesystem adapter to use
  • gaufrette.adapter.cache.class: The cache adapter to use
  • gaufrette.cache.options: An array of options to pass to the cache adapter class
  • gaufrette.cache.ttl: The ttl (in seconds) for the cache. Defaults to 0
  • gaufrette.options: An array of options to pass to the adapter class

Services

  • gaufrette.filesystem: Instance of Gaufrette\Filesystem
  • gaufrette.cache: Instance of Gaufrette\Adapter\Cache if cache adapter parameter is provided
  • gaufrette.adapter: Instance of Gaufrette\Adapter{gaufrette.adapter.class}
  • gaufrette.adapter.cache: Instance of Gaufrette\Adapter{gaufrette.adapter.cache.class} if provided

Registering

See the example/ directory to see how to register the service

License

MIT