Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
setup
src
Magento
Setup
Model
CryptKeyGenerator.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Setup\Model
;
8
9
use
Magento\Framework\Config\ConfigOptionsListConstants
;
10
use
Magento\Framework\Math\Random
;
11
15
class
CryptKeyGenerator
implements
CryptKeyGeneratorInterface
16
{
20
private
$random;
21
27
public
function
__construct
(
Random
$random)
28
{
29
$this->random = $random;
30
}
31
38
public
function
generate
()
39
{
40
return
md5($this->getRandomString());
41
}
42
49
private
function
getRandomString()
50
{
51
return
$this->random->getRandomString(
ConfigOptionsListConstants::STORE_KEY_RANDOM_STRING_SIZE
);
52
}
53
}
Magento\Setup\Model\CryptKeyGenerator
Definition:
CryptKeyGenerator.php:15
Magento\Framework\Config\ConfigOptionsListConstants\STORE_KEY_RANDOM_STRING_SIZE
const STORE_KEY_RANDOM_STRING_SIZE
Definition:
ConfigOptionsListConstants.php:133
Magento\Setup\Model\CryptKeyGeneratorInterface
Definition:
CryptKeyGeneratorInterface.php:12
Magento\Setup\Model\CryptKeyGenerator\generate
generate()
Definition:
CryptKeyGenerator.php:38
Magento\Setup\Model
Definition:
ConfigOptionsListCollectorTest.php:6
Magento\Framework\Config\ConfigOptionsListConstants
Definition:
ConfigOptionsListConstants.php:16
Magento\Framework\Math\Random
Definition:
Random.php:17
Magento\Setup\Model\CryptKeyGenerator\__construct
__construct(Random $random)
Definition:
CryptKeyGenerator.php:27