dev-master
9999999-dev https://github.com/jlaso/session-storage-bundleLayer to create table for PDOSessionHandler
MIT
The Requires
- php >=5.3.7
symfony session
Layer to create table for PDOSessionHandler
========, (*2)
This bundle creates the table needed for the PDOSessionHandler, (*3)
In order to install this bundle you need to pay attention with requirements:, (*4)
php > 5.3.7
Checkout a copy of the code:, (*5)
// in composer.json "require": { // ... "jlaso/session-storage-bundle": "*" // ... },
Then register the bundle with your kernel:, (*6)
// in AppKernel::registerBundles() $bundles = array( // ... new JLaso\SessionStorageBundle\SessionStorageBundle(), // ... );
// in app/config/config.yml services: pdo: class: PDO arguments: - "mysql:host=%database_host%;port=%database_port%;dbname=%database_name%" - "%database_user%" - "%database_password%" calls: - [setAttribute, [3, 2]] # \PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION session.handler.pdo: class: Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler arguments: ["@pdo", "%pdo.db_options%"]
execute schema:update to create into database the session table:, (*7)
app/console doctrine:schema:update --force
Layer to create table for PDOSessionHandler
MIT
symfony session