if (!
isset($_SESSION['parameters'
])) { $_SESSION['parameters'
] =
[];
}if (isset($_SESSION['databaseConnectionInfo'
])) { $connectionInfo =
$_SESSION['databaseConnectionInfo'
];
try { $databaseFactory =
new DatabaseFactory();
$connection =
$databaseFactory->
createPDOConnection($connectionInfo);
// Init db in container
$container->
offsetSet('db',
$connection);
} catch (\Exception
$e) { // Jump to form
throw $e;
}}/**
* @return array|string
*/