Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
Hash Class Reference

Public Member Functions

 __construct (Hash\Generator $configHashGenerator, DataCollector $dataConfigCollector, FlagResource $flagResource, FlagFactory $flagFactory)
 

Data Fields

const CONFIG_KEY = 'config_hash'
 

Detailed Description

Saves and Retrieves deployment configuration hash.

This hash keeps version of last imported data. Hash is used to define whether data was updated and import is required.

See also
\Magento\Deploy\Model\DeploymentConfig\ChangeDetector::hasChanges()

Definition at line 22 of file Hash.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Hash\Generator  $configHashGenerator,
DataCollector  $dataConfigCollector,
FlagResource  $flagResource,
FlagFactory  $flagFactory 
)
Parameters
Hash\Generator$configHashGeneratorthe hash generator
DataCollector$dataConfigCollectorthe config data collector
FlagResource$flagResource
FlagFactory$flagFactory

Definition at line 63 of file Hash.php.

68  {
69  $this->configHashGenerator = $configHashGenerator;
70  $this->dataConfigCollector = $dataConfigCollector;
71  $this->flagResource = $flagResource;
72  $this->flagFactory = $flagFactory;
73  }

Field Documentation

◆ CONFIG_KEY

const CONFIG_KEY = 'config_hash'

Name of the section where deployment configuration hash is stored.

Definition at line 27 of file Hash.php.


The documentation for this class was generated from the following file: