protected function PdoSessionHandler::getConnection in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Session/Storage/Handler/PdoSessionHandler.php \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler::getConnection()
Return a PDO instance.
Return value
\PDO
1 call to PdoSessionHandler::getConnection()
- PdoSessionHandler::createTable in vendor/
symfony/ http-foundation/ Session/ Storage/ Handler/ PdoSessionHandler.php - Creates the table to store sessions which can be called once for setup.
File
- vendor/
symfony/ http-foundation/ Session/ Storage/ Handler/ PdoSessionHandler.php, line 687
Class
- PdoSessionHandler
- Session handler using a PDO connection to read and write data.
Namespace
Symfony\Component\HttpFoundation\Session\Storage\HandlerCode
protected function getConnection() {
if (null === $this->pdo) {
$this
->connect($this->dsn ?: ini_get('session.save_path'));
}
return $this->pdo;
}