Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, \Magento\Framework\HTTP\Client\Curl $curl, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\Serialize\Serializer\Json $serializer=null) | |
getCredentialBaseUrl () | |
checkCredentials ($token, $secretKey) | |
getAuthJsonData () | |
removeCredentials () | |
saveAuthJson ($username, $password) | |
Data Fields | |
const | KEY_HTTPBASIC = 'http-basic' |
const | KEY_USERNAME = 'username' |
const | KEY_PASSWORD = 'password' |
const | PATH_TO_AUTH_FILE = 'auth.json' |
const | PATH_TO_PACKAGES_FILE = 'packages.json' |
Protected Attributes | |
$serviceLocator | |
$curlClient | |
$urlPrefix = 'https://' | |
Class PackagesAuth, checks, saves and removes auth details related to packages.
Definition at line 15 of file PackagesAuth.php.
__construct | ( | \Zend\ServiceManager\ServiceLocatorInterface | $serviceLocator, |
\Magento\Framework\HTTP\Client\Curl | $curl, | ||
\Magento\Framework\Filesystem | $filesystem, | ||
\Magento\Framework\Serialize\Serializer\Json | $serializer = null |
||
) |
\Zend\ServiceManager\ServiceLocatorInterface | $serviceLocator | |
\Magento\Framework\HTTP\Client\Curl | $curl | |
\Magento\Framework\Filesystem | $filesystem | |
\Magento\Framework\Serialize\Serializer\Json | null | $serializer |
Definition at line 64 of file PackagesAuth.php.
checkCredentials | ( | $token, | |
$secretKey | |||
) |
string | $token | |
string | $secretKey |
Definition at line 100 of file PackagesAuth.php.
getAuthJsonData | ( | ) |
Gets auth.json file
Definition at line 125 of file PackagesAuth.php.
getCredentialBaseUrl | ( | ) |
removeCredentials | ( | ) |
Removes credentials from auth.json
Definition at line 163 of file PackagesAuth.php.
saveAuthJson | ( | $username, | |
$password | |||
) |
Saves auth.json file
string | $username | |
string | $password |
Definition at line 190 of file PackagesAuth.php.
|
protected |
Definition at line 40 of file PackagesAuth.php.
|
protected |
Definition at line 35 of file PackagesAuth.php.
|
protected |
Definition at line 45 of file PackagesAuth.php.
const KEY_HTTPBASIC = 'http-basic' |
#+ Composer auth.json keys
Definition at line 20 of file PackagesAuth.php.
const KEY_PASSWORD = 'password' |
Definition at line 22 of file PackagesAuth.php.
const KEY_USERNAME = 'username' |
Definition at line 21 of file PackagesAuth.php.
const PATH_TO_AUTH_FILE = 'auth.json' |
#- #+ Filenames for auth and package info
Definition at line 28 of file PackagesAuth.php.
const PATH_TO_PACKAGES_FILE = 'packages.json' |
Definition at line 29 of file PackagesAuth.php.