예제 #1
0
파일: Auth.php 프로젝트: firehed/auth
 public function __construct()
 {
     // Store the instanciation time so that "for the rest of this request"
     // stuff can work as expected on requests that take >1s
     $this->time = new DateTime();
     // Assume by default that we want a normally logged-in user
     $this->setRequiredLevel(Level::LOGIN());
 }
예제 #2
0
파일: AuthTest.php 프로젝트: firehed/auth
 public function levels()
 {
     return [[Level::ANONYMOUS()], [Level::LOGIN()], [Level::HISEC()]];
 }