コード例 #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()]];
 }