bt51 / stash-serviceprovider
Stash service provider for silex
Installs: 8 932
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 4
Open Issues: 0
Requires
- php: >=5.3.2
- tedivm/stash: ~0.14
Requires (Dev)
- phpunit/phpunit: 4.1.*
- silex/silex: 1.1.*
README
The StashServiceProvider provides the "tedivm/stash" library for silex. Read more on stash here: stash.tedivm.com Note: The StashServiceProvider uses master branch of Stash. Stash is under active development.
Installation
Create a composer.json in your project
{
"require": {
"bt51/stash-serviceprovider": "dev-master"
}
}
Read more on composer here: http://getcomposer.org
Parameters
- stash.driver.options: An array of options to be passed to the driver's constructor
- stash.driver.class: The cache class adapter to use
Services
- stash: Instance of Stash\Pool
- stash.handler: Instance of Stash\Handler{stash.driver.class}
Registering
See the example/ directory to see how to register the service
License
MIT