-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
81 changed files
with
2,335 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2013 - 2017 | ||
* @package yii2-social | ||
* @version 1.3.3 | ||
*/ | ||
|
||
namespace kartik\social; | ||
|
||
use Facebook\PersistentData\PersistentDataInterface; | ||
use Yii; | ||
|
||
/** | ||
* Facebook persistent handler for Yii. | ||
*/ | ||
class FacebookPersistentHandler implements PersistentDataInterface | ||
{ | ||
/** | ||
* @var string prefix to use for session variables. | ||
*/ | ||
public $sessionPrefix = 'FBPH_'; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function get($key) | ||
{ | ||
return Yii::$app->session->get($this->sessionPrefix . $key); | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function set($key, $value) | ||
{ | ||
Yii::$app->session->set($this->sessionPrefix . $key, $value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.