コード例 #1
0
ファイル: Factory.php プロジェクト: bambamboole/ctcrm
 public function getAuthInstance()
 {
     $dbFactory = new DbFactory();
     $storage = $dbFactory->getSqlStorage(DB_CTCRM);
     $userMapper = new Mapper($storage, 'users');
     $authService = new \Auth($userMapper, array('id' => 'username', 'pw' => 'password'));
     return new Authenticator($authService);
 }