public function prepare()
    {
        if (!$this->sessionBag->has(self::CSRF_TKN_NAME)) {
            $this->sessionBag->set(self::CSRF_TKN_NAME, $this->generateToken());
            $this->sessionBag->set(self::CSRF_TKN_TIME, time());
        }

        $this->prepared = true;
    }
public function prepare()
    {
        if (!$this->sessionBag->has(self::CSRF_TKN_NAME)) {
            $this->sessionBag->set(self::CSRF_TKN_NAME, $this->generateToken());
            $this->sessionBag->set(self::CSRF_TKN_TIME, time());
        }

        $this->prepared = true;
    }
public function prepare ( ) { if ( ! $ this -> sessionBag -> has ( self :: CSRF_TKN_NAME ) ) { $ this -> sessionBag -> set ( self :: CSRF_TKN_NAME , $ this -> generateToken ( ) ) ; $ this -> sessionBag -> set ( self :: CSRF_TKN_TIME , time ( ) ) ; } $ this -> prepared = true ; }
Prepares to run

@return void
Prepares to run