Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SynchronizeWebsiteAttributes.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Catalog\Cron;
8 
10 
16 {
20  private $synchronizer;
21 
26  public function __construct(WebsiteAttributesSynchronizer $synchronizer)
27  {
28  $this->synchronizer = $synchronizer;
29  }
30 
35  public function execute()
36  {
37  if ($this->synchronizer->isSynchronizationRequired()) {
38  $this->synchronizer->synchronize();
39  }
40  }
41 }
__construct(WebsiteAttributesSynchronizer $synchronizer)