shapecode/doctrine-session-handler-bundle

Adds a doctrine session handler to a Symfony project.

Fund package maintenance!
Paypal
Liberapay

Installs: 45 570

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 4

Open Issues: 2

Type:symfony-bundle

7.0.1 2024-06-09 12:24 UTC

README

paypal

PHP Version Latest Stable Version Latest Unstable Version Total Downloads Monthly Downloads Daily 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 require shapecode/doctrine-session-handler-bundle

Add the bundle to your bundles.php:

<?php

return [
    // ...
    Shapecode\Bundle\Doctrine\SessionHandlerBundle\ShapecodeDoctrineSessionHandlerBundle::class => ['all' => true],
    // ...
];

Update your database.

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

Now you have to change your application config (default location of app/config/packages/framework.yaml).

framework:
    session:
        handler_id: Shapecode\Bundle\Doctrine\SessionHandlerBundle\Session\Handler\DoctrineHandler

Done ;)