PHP Класс ZF\Apigility\Admin\Controller\AuthenticationController

Наследование: extends AbstractAuthenticationController
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$model

Открытые методы

Метод Описание
__construct ( AuthenticationModel $model )
authenticationAction ( )
mappingAction ( ) Mapping action for v2 Since Apigility 1.1

Защищенные методы

Метод Описание
authVersion1 ( Zend\Http\Request $request ) : ZF\ContentNegotiation\ViewModel | ZF\ApiProblem\ApiProblemResponse | Zend\Stdlib\ResponseInterface Manage the authentication API version 1
authVersion2 ( Zend\Http\Request $request ) : ZF\ContentNegotiation\ViewModel | ZF\ApiProblem\ApiProblemResponse | Zend\Http\Response Manage the authentication API version 2
getRouteForEntity ( AuthenticationEntity $entity ) : string Determine the route to use for a given entity
mappingAuthentication ( Zend\Http\Request $request ) : ZF\ContentNegotiation\ViewModel | ZF\ApiProblem\ApiProblemResponse Map the authentication adapter to a module Since Apigility 1.1

Приватные методы

Метод Описание
createAuthenticationAdapter ( array $params ) : ZF\ApiProblem\ApiProblemResponse | Zend\Http\Response Create a new authentication adapter
createAuthenticationMapResult ( string $adapter ) : ZF\ContentNegotiation\ViewModel Create a view model detailing the authentication adapter mapped
createCollection ( mixed $collection ) : ZF\ContentNegotiation\ViewModel Create a collection response
createEntity ( mixed $entity ) : ZF\ContentNegotiation\ViewModel Create and return an entity view model
fetchAuthenticationCollection ( ) : ZF\ContentNegotiation\ViewModel Fetch a collection of authentication adapters
fetchAuthenticationEntity ( string $adapter ) : ZF\ApiProblem\ApiProblemResponse | ZF\ContentNegotiation\ViewModel Fetch an authentication entity
removeAuthenticationAdapter ( string $adapter ) : ZF\ApiProblem\ApiProblemResponse | Zend\Http\Response Remove an existing authentication adapter
removeAuthenticationMap ( string $module, string | integer $version ) : ZF\ApiProblem\ApiProblemResponse | Zend\Stdlib\ResponseInterface Remove the authentication map for a given module/version pair.
updateAuthenticationAdapter ( string $adapter, array $params ) : ZF\ApiProblem\ApiProblemResponse | ZF\ContentNegotiation\ViewModel Update an existing authentication adapter
updateAuthenticationMap ( array $params, string $module, string | integer $version ) : ZF\ContentNegotiation\ViewModel | ZF\ApiProblem\ApiProblemResponse Attempt to save an authentication map.

Описание методов

__construct() публичный Метод

public __construct ( AuthenticationModel $model )
$model ZF\Apigility\Admin\Model\AuthenticationModel

authVersion1() защищенный Метод

Manage the authentication API version 1
protected authVersion1 ( Zend\Http\Request $request ) : ZF\ContentNegotiation\ViewModel | ZF\ApiProblem\ApiProblemResponse | Zend\Stdlib\ResponseInterface
$request Zend\Http\Request
Результат ZF\ContentNegotiation\ViewModel | ZF\ApiProblem\ApiProblemResponse | Zend\Stdlib\ResponseInterface

authVersion2() защищенный Метод

Manage the authentication API version 2
protected authVersion2 ( Zend\Http\Request $request ) : ZF\ContentNegotiation\ViewModel | ZF\ApiProblem\ApiProblemResponse | Zend\Http\Response
$request Zend\Http\Request
Результат ZF\ContentNegotiation\ViewModel | ZF\ApiProblem\ApiProblemResponse | Zend\Http\Response

authenticationAction() публичный Метод

getRouteForEntity() защищенный Метод

Determine the route to use for a given entity
protected getRouteForEntity ( AuthenticationEntity $entity ) : string
$entity ZF\Apigility\Admin\Model\AuthenticationEntity
Результат string

mappingAction() публичный Метод

Mapping action for v2 Since Apigility 1.1
public mappingAction ( )

mappingAuthentication() защищенный Метод

Map the authentication adapter to a module Since Apigility 1.1
protected mappingAuthentication ( Zend\Http\Request $request ) : ZF\ContentNegotiation\ViewModel | ZF\ApiProblem\ApiProblemResponse
$request Zend\Http\Request
Результат ZF\ContentNegotiation\ViewModel | ZF\ApiProblem\ApiProblemResponse

Описание свойств

$model защищенное свойство

protected $model