Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
five_repository_customers.php File Reference

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $customerRepository = $objectManager->create(CustomerRepositoryInterface::class)
 
 $customerFactory = $objectManager->get(CustomerInterfaceFactory::class)
 
 $eavConfig = $objectManager->get(EavModelConfig::class)
 
 $indexerRegistry = $objectManager->create(IndexerRegistry::class)
 
 $indexer = $indexerRegistry->get(Customer::CUSTOMER_GRID_INDEXER_ID)
 
 try
 

Variable Documentation

◆ $customerFactory

$customerFactory = $objectManager->get(CustomerInterfaceFactory::class)

Definition at line 22 of file five_repository_customers.php.

◆ $customerRepository

$customerRepository = $objectManager->create(CustomerRepositoryInterface::class)

Definition at line 20 of file five_repository_customers.php.

◆ $eavConfig

$eavConfig = $objectManager->get(EavModelConfig::class)

Definition at line 39 of file five_repository_customers.php.

◆ $indexer

$indexer = $indexerRegistry->get(Customer::CUSTOMER_GRID_INDEXER_ID)

Definition at line 45 of file five_repository_customers.php.

◆ $indexerRegistry

$indexerRegistry = $objectManager->create(IndexerRegistry::class)

Definition at line 43 of file five_repository_customers.php.

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 17 of file five_repository_customers.php.

◆ try

try
Initial value:
{
$indexer->reindexAll()

Definition at line 46 of file five_repository_customers.php.