ZF\Apigility\Admin\Controller\AuthenticationController::fetchAuthenticationCollection PHP Метод

fetchAuthenticationCollection() приватный Метод

Fetch a collection of authentication adapters
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);
    }