Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавляем основные файлы ZF2. В будущем запланировано переписывание движка с использованием данного фреймворка.
- Loading branch information
Showing
2,482 changed files
with
298,793 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace Zend\Authentication\Adapter; | ||
|
||
abstract class AbstractAdapter implements ValidatableAdapterInterface | ||
{ | ||
/** | ||
* @var mixed | ||
*/ | ||
protected $credential; | ||
|
||
/** | ||
* @var mixed | ||
*/ | ||
protected $identity; | ||
|
||
/** | ||
* Returns the credential of the account being authenticated, or | ||
* NULL if none is set. | ||
* | ||
* @return mixed | ||
*/ | ||
public function getCredential() | ||
{ | ||
return $this->credential; | ||
} | ||
|
||
/** | ||
* Sets the credential for binding | ||
* | ||
* @param mixed $credential | ||
* @return AbstractAdapter | ||
*/ | ||
public function setCredential($credential) | ||
{ | ||
$this->credential = $credential; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Returns the identity of the account being authenticated, or | ||
* NULL if none is set. | ||
* | ||
* @return mixed | ||
*/ | ||
public function getIdentity() | ||
{ | ||
return $this->identity; | ||
} | ||
|
||
/** | ||
* Sets the identity for binding | ||
* | ||
* @param mixed $identity | ||
* @return AbstractAdapter | ||
*/ | ||
public function setIdentity($identity) | ||
{ | ||
$this->identity = $identity; | ||
|
||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace Zend\Authentication\Adapter; | ||
|
||
interface AdapterInterface | ||
{ | ||
/** | ||
* Performs an authentication attempt | ||
* | ||
* @return \Zend\Authentication\Result | ||
* @throws \Zend\Authentication\Adapter\Exception\ExceptionInterface If authentication cannot be performed | ||
*/ | ||
public function authenticate(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace Zend\Authentication\Adapter; | ||
|
||
/** | ||
* @deprecated | ||
*/ | ||
class DbTable extends DbTable\CredentialTreatmentAdapter | ||
{ | ||
} |
Oops, something went wrong.