Exemple #1
0
 /**
  * Return auth from session
  *
  * @return AccessEntity|null
  * @throws \RuntimeException
  */
 public function get()
 {
     if ($this->session()->has(self::KEY)) {
         $data = $this->session()->get(self::KEY);
         if ($data !== null) {
             $access = new AccessEntity();
             $access->setData($data, true);
             return $access;
         }
     }
     return null;
 }