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

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $productFactory = $objectManager->create(ProductFactory::class)
 
 $productRepository = $objectManager->create(ProductRepositoryInterface::class)
 
 $productsAmount = 10
 

Variable Documentation

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 13 of file few_simple_products.php.

◆ $productFactory

$productFactory = $objectManager->create(ProductFactory::class)

Definition at line 16 of file few_simple_products.php.

◆ $productRepository

$productRepository = $objectManager->create(ProductRepositoryInterface::class)

Definition at line 19 of file few_simple_products.php.

◆ $productsAmount

$productsAmount = 10

Definition at line 22 of file few_simple_products.php.