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
framework
DataObject
IdentityService.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\DataObject
;
7
8
use Ramsey\Uuid\Uuid;
9
13
class
IdentityService
implements
IdentityGeneratorInterface
14
{
18
private
$uuidFactory;
19
23
public
function
__construct
()
24
{
25
$this->uuidFactory = new \Ramsey\Uuid\UuidFactory();
26
}
27
31
public
function
generateId
()
32
{
33
$uuid = $this->uuidFactory->uuid4();
34
return
$uuid->toString();
35
}
36
40
public
function
generateIdForData
(
$data
)
41
{
42
$uuid = $this->uuidFactory->uuid3(Uuid::NAMESPACE_DNS,
$data
);
43
return
$uuid->toString();
44
}
45
}
Magento\Framework\DataObject\IdentityGeneratorInterface
Definition:
IdentityGeneratorInterface.php:11
Magento\Framework\DataObject\IdentityService\generateId
generateId()
Definition:
IdentityService.php:31
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\DataObject\IdentityService\__construct
__construct()
Definition:
IdentityService.php:23
Magento\Framework\DataObject\IdentityService
Definition:
IdentityService.php:13
Magento\Framework\DataObject\IdentityService\generateIdForData
generateIdForData($data)
Definition:
IdentityService.php:40
Magento\Framework\DataObject
Definition:
Cache.php:6