コード例 #1
0
 public function __construct($sName)
 {
     if (!$this->_isEnabled()) {
         return;
     }
     // If it's disabled, we stop the execution of the class
     $this->sName = $sName;
     parent::__construct('security_token', (new T())->generate($this->sName));
 }
コード例 #2
0
ファイル: Token.php プロジェクト: joswilson/NotJustOK
 public function __construct($sName)
 {
     $this->sName = $sName;
     parent::__construct('security_token', (new T())->generate($this->sName));
 }