Skip to content

MicWit/doctrine-session-handler-bundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shapecode - Doctrine Session Handler Bundle

SensioLabsInsight Dependency Status Latest Stable Version Total Downloads License

This bundle provides a Doctrine session handler to save sessions in a database.

Install instructions

Installing this bundle can be done through these simple steps:

Add the bundle to your project as a composer dependency:

// composer.json
{
    "require": {
        "shapecode/doctrine-session-handler-bundle": "~1.0"
    }
}

or ...

$ composer require shapecode/doctrine-session-handler-bundle:~1.0

Then do a composer update.

$ composer update

Add the bundle to your application kernel:

<?php

// application/ApplicationKernel.php
public function registerBundles()
{
	// ...
	$bundle = array(
		// ...
        new Shapecode\Bundle\Doctrine\SessionHandlerBundle\ShapecodeDoctrineSessionHandlerBundle,
	);
    // ...

    return $bundles;
}

Update your database.

$ php bin/console doctrine:schema:update --force

Now you have to change your application config.

framework:
    session:
        # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
        # handler_id:  session.handler.native_file
        handler_id:  shapecode_doctrine_session_handler.handler

You are done ;)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%