shapecode / doctrine-session-handler-bundle
Adds a doctrine session handler to a Symfony project.
Installs: 45 654
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 4
Open Issues: 2
Type:symfony-bundle
Requires
- php: ^8.2
- ext-session: *
- doctrine/dbal: ^3.0 || ^4.0
- doctrine/doctrine-bundle: ^2.12
- doctrine/orm: ^2.7 || ^3.2
- doctrine/persistence: ^3.2
- nesbot/carbon: ^3.5
- psr/clock: ^1.0
- symfony/config: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
Requires (Dev)
- dg/bypass-finals: ^1.5
- doctrine/coding-standard: ^12.0
- icanhazstring/composer-unused: ^0.8
- maglnet/composer-require-checker: ^4.7
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^10.5
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.7
- symfony/var-dumper: ^7.0
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 ;)