private fetchAuthenticationCollection ( ) : ZF\ContentNegotiation\ViewModel | ||
Результат | ZF\ContentNegotiation\ViewModel |
private function fetchAuthenticationCollection()
{
$collection = $this->model->fetchAllAuthenticationAdapter();
if (!$collection) {
// Check for old authentication configuration
if ($this->model->fetch()) {
// Create a new authentication adapter for each API/version
$this->model->transformAuthPerApis();
$collection = $this->model->fetchAllAuthenticationAdapter();
}
}
return $this->createCollection($collection);
}