Created TreeTokenNull to disable the 'TreeToken' build at will + use it in index
This commit is contained in:
parent
d064e304ee
commit
ea66003d27
|
@ -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; }
|
||||
|
||||
|
||||
}
|
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue