shapecode / doctrine-session-handler-bundle
Adds a doctrine session handler to a Symfony project.
Installs: 40 103
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 4
Open Issues: 2
Type:symfony-bundle
Requires
- php: ^8.1
- ext-session: *
- doctrine/common: ^2.13|^3.0
- doctrine/dbal: ^2.10|^3.0
- doctrine/orm: ^2.7
- doctrine/persistence: ^2.0|^3.0
- nesbot/carbon: ^2.41
- symfony/config: ^5.4|^6.0
- symfony/dependency-injection: ^5.4|^6.0
- symfony/http-kernel: ^5.4|^6.0
Requires (Dev)
- dg/bypass-finals: ^1.3
- doctrine/coding-standard: ^9.0
- icanhazstring/composer-unused: ^0.8
- maglnet/composer-require-checker: ^4.0
- phpstan/phpstan: ^1.7
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-strict-rules: ^1.2
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.6
- symfony/var-dumper: ^6.1
README
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 ;)