本文整理匯總了PHP中Parse\ParseClient::getStorage方法的典型用法代碼示例。如果您正苦於以下問題:PHP ParseClient::getStorage方法的具體用法?PHP ParseClient::getStorage怎麽用?PHP ParseClient::getStorage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Parse\ParseClient
的用法示例。
在下文中一共展示了ParseClient::getStorage方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setUpBeforeClass
public static function setUpBeforeClass()
{
ParseClient::_unsetStorage();
session_start();
ParseTestHelper::setUp();
self::$parseStorage = ParseClient::getStorage();
}
示例2: logout
public function logout(Request $request, Response $response, $args)
{
$this->logger->info("Login page action dispatched");
$uri = $request->getUri();
try {
$this->userRepository->logOut();
$this->currentUser = $this->userRepository->getCurrentUser();
ParseClient::getStorage()->set('company', null);
} catch (ParseException $e) {
ParseErrorHandler::handleParseError($e);
}
return $response->withStatus(302)->withHeader('Location', $uri->withPath('login'));
}
示例3: setCurrentCompany
public function setCurrentCompany($company)
{
static::$currentCompany = $company;
ParseClient::getStorage()->set('company', $company);
return;
}
示例4: Storage
/**
* Get the ParseClient storage object (if set) or ParseMemoryStorage as default.
*
* @return ParseMemoryStorage
*/
public static function Storage()
{
return ParseClient::getStorage() ?: ParseHelper::MemoryStorage();
}
示例5: ParseMemoryStorage
function __construct($cacheListObjects = false, $chainExecHandler = null, $cacheStorage = null)
{
$this->cacheStorage = $cacheStorage ?: ParseClient::getStorage() ?: new ParseMemoryStorage();
$this->cacheListObjects = $cacheListObjects;
$this->chainExecHandler = $chainExecHandler;
}
示例6: setUpBeforeClass
public static function setUpBeforeClass()
{
Helper::setUp();
self::$parseStorage = ParseClient::getStorage();
}