本文整理汇总了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();
}