예제 #1
0
 /**
  * @param string $userModelName
  * @return void
  */
 public function __construct($userModelName = null)
 {
     parent::__construct();
     $this->_userModelName = $userModelName = $userModelName ? $userModelName : '\\Auth\\Model\\User';
     $interfaces = class_implements($userModelName);
     if (!in_array('Auth\\Model\\UserInterface', $interfaces)) {
         throw new \Exception('Model ' . $userModelName . ' should implements interface \\Auth\\Model\\UserInterface');
     }
 }
예제 #2
0
 /**
  * @param array $users
  * @return void
  */
 public function __construct(array $users = null)
 {
     parent::__construct();
     $this->_users = $users;
 }