Example #1
0
 /**
  * Return the stored authorisation session.
  *
  * @return Authorisation|null
  */
 public function getAuthorisation()
 {
     if ($this->authorisation === null && $this->session->get(self::SESSION_AUTHORISATION)) {
         $this->authorisation = Authorisation::createFromJson($this->session->get(self::SESSION_AUTHORISATION));
     }
     return $this->authorisation;
 }