Created TreeTokenNull to disable the 'TreeToken' build at will + use it in index

This commit is contained in:
xdrm-brackets 2017-11-13 13:43:14 +01:00
parent d064e304ee
commit ea66003d27
2 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,14 @@
<?php
namespace token\core;
class TreeTokenNull{
public function __construct(){}
public function init_parent(){ return true; }
public function init_child(){ return true; }
}

View File

@ -8,11 +8,11 @@
use \api\core\Response;
use \database\core\DatabaseDriver;
use \api\core\AuthSystemDefault;
use \token\core\TreeToken;
use \token\core\TreeTokenNull;
use \log\core\Log;
$page_log = Log::get('router');
$session_guard = new TreeToken(1000);
$session_guard = new TreeTokenNull(1000);