public function getToken($tokenId) {

		$sessionToken = $this->sessionDataBag->get($this->namespace . '/' . $tokenId);

		if(!$sessionToken) {
			throw new CsrfTokenException(sprintf("CSRF token with id '%s' not found.", $tokenId));
		}

		return $sessionToken;
	}
public function getToken($tokenId) {

		$sessionToken = $this->sessionDataBag->get($this->namespace . '/' . $tokenId);

		if(!$sessionToken) {
			throw new CsrfTokenException(sprintf("CSRF token with id '%s' not found.", $tokenId));
		}

		return $sessionToken;
	}
public function getToken ( $ tokenId ) { $ sessionToken = $ this -> sessionDataBag -> get ( $ this -> namespace . '/' . $ tokenId ) ; if ( ! $ sessionToken ) { throw new CsrfTokenException ( sprintf ( "CSRF token with id '%s' not found." , $ tokenId ) ) ; } return $ sessionToken ; }
retrieves token stored in session under namespaced token id

@param string $tokenId
@return string

@throws CsrfTokenException
retrieves token stored in session under namespaced token id