adt / doctrine-session-handler
Doctrine session handler
Installs: 13 016
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 13
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
README
composer require adt/doctrine-session-handler
<?php namespace App\Entity; use ADT\DoctrineSessionHandler\SessionInterface; use ADT\DoctrineSessionHandler\SessionTrait; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity */ #[ORM\Entity] class SessionStorage extends BaseEntity implements SessionInterface { use SessionTrait; /** * @var integer * * @ORM\Id * @ORM\Column(type="integer", nullable=false) * @ORM\GeneratedValue */ #[ORM\Id] #[ORM\Column(nullable: false)] #[ORM\GeneratedValue] public int $id; }
services: sessionHandler: ADT\DoctrineSessionHandler\Handler(\App\Entity\SessionStorage) session: autoStart: smart handler: @sessionHandler