for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Otobank\Bundle\FacebookBundle\Facebook\PersistentData;
use Facebook\PersistentData\PersistentDataInterface;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
class FacebookSessionPersistentDataHandler implements PersistentDataInterface
{
const SESSION_PREFIX = 'FBRLH_';
private $session;
/**
* @param SessionInterface $session
*/
public function __construct(SessionInterface $session)
$this->session = $session;
}
* {@inheritDoc}
public function get($key)
return $this->session->get(self::SESSION_PREFIX . $key);
public function set($key, $value)
$this->session->set(self::SESSION_PREFIX . $key, $value);