예제 #1
0
파일: oauth2.php 프로젝트: Digt/trusted-php
 static function fromArray($array)
 {
     $res = new OAuth2();
     foreach ($res as $key => &$value) {
         $val = $array[$key];
         if (isset($val)) {
             $value = $val;
         }
     }
     $res->putToSession();
     return $res;
 }