Cookie refactoring, added session database handler, session refactoring, remove __destruct on Database

Bugfix: __destruct method on DB driver close the connection before write a session
v2-beta
Bruno O. Notario 9 months ago
parent f03122bc17
commit d19c814a0c
Signed by: oliveira131
GPG Key ID: 76CAD698D3EA8F58
  1. 145
      system/Cookies/Config.php
  2. 4
      system/Cookies/SameSite.php
  3. 164
      system/Cookies/autoload.php
  4. 39
      system/MagiQL/MagiQL.php
  5. 10
      system/database/Databases/MySQLi.php
  6. 2
      system/database/autoload.php
  7. 31
      system/session/Api/HandlerInterface.php
  8. 201
      system/session/Handlers/Database.php
  9. 7
      system/session/Handlers/Redis.php
  10. 56
      system/session/autoload.php

File diff suppressed because one or more lines are too long

@ -8,6 +8,10 @@
namespace Phacil\Framework\Cookies; namespace Phacil\Framework\Cookies;
/**
* @since 2.0.0
* @package Phacil\Framework\Cookies
*/
class SameSite { class SameSite {
const STRICT = 'Strict'; const STRICT = 'Strict';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -94,7 +94,7 @@ class Database implements DatabaseApi {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function __destruct() { public function __destruct() {
unset($this->driver); //unset($this->driver);
} }
/** /**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save