Ejemplo n.º 1
0
 public function setUp()
 {
     $this->request = new Request();
     $storage = new \Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage();
     $session = new \Symfony\Component\HttpFoundation\Session\Session($storage);
     $this->request->setSession($session);
     $this->tokenProcessor = TokenProcessor::getInstance();
 }
Ejemplo n.º 2
0
 /**
  * <p>Save a new transaction token in the user's current session, creating
  * a new session if necessary.</p>
  *
  * @param \Symfony\Component\HttpFoundation\Request request The actionKernel request we are processing
  */
 protected function saveToken(Request $request)
 {
     $token = \Phruts\Util\TokenProcessor::getInstance();
     // not application scope
     $token->saveToken($request);
 }