bt51/stash-serviceprovider

Stash service provider for silex

Installs: 517

Dependents: 0

Stars: 1

Watchers: 2

Forks: 2

Language: PHP

1.2.0 2014-06-17 01:37 UTC

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