Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (16 sloc) 0.729 kb

Object id provisioning/ticket server for Symfony2 using (by default) predis/SncPredisBundle

Usage

Really simple. The ORM listener watches the Doctrine prePersist event for objects implementing ProvisionableInterface (which requires a setId() method), then uses the configured provisioner (a redis provisioner is provided by default) to generate a unique key for it.

Configuration

To use the redis provisioner with SNCRedisBundle:

app/config/config.yml
problematic_provisioner:
    redis:
        client: snc_redis.default_client

Todo

  • Support other provisioners besides redis
  • Make things more configurable in general
Something went wrong with that request. Please try again.