Skip to content

Instantly share code, notes, and snippets.

@arghav
Created May 24, 2011 06:52
Show Gist options
  • Save arghav/988232 to your computer and use it in GitHub Desktop.
Save arghav/988232 to your computer and use it in GitHub Desktop.
PdoSessionStorage with DBAL connection
parameters:
pdo.options: []
pdo.db_options:
db_table: session
services:
session.storage.pdo:
class: Symfony\Component\HttpFoundation\SessionStorage\PdoSessionStorage
arguments:
- @doctrine.dbal.default.wrapped_connection
- %pdo.options%
- %pdo.db_options%
doctrine.dbal.default.wrapped_connection:
factory_service: doctrine.dbal.default_connection
factory_method: getWrappedConnection
class: PDO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment