|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (FixtureModel $fixtureModel, \Magento\Framework\App\ResourceConnection $resourceConnection, \Magento\Setup\Fixtures\ImagesGenerator\ImagesGeneratorFactory $imagesGeneratorFactory, \Magento\Framework\Filesystem $filesystem, \Magento\Catalog\Model\Product\Media\Config $mediaConfig, \Magento\Eav\Model\AttributeRepository $attributeRepository, \Magento\Framework\DB\Sql\ColumnValueExpressionFactory $expressionFactory, \Magento\Setup\Model\BatchInsertFactory $batchInsertFactory, \Magento\Framework\EntityManager\MetadataPool $metadataPool) | |
| execute () | |
| getActionTitle () | |
| introduceParamLabels () | |
| printInfo (OutputInterface $output) | |
Public Member Functions inherited from Fixture | |
| __construct (FixtureModel $fixtureModel) | |
| execute () | |
| getActionTitle () | |
| printInfo (OutputInterface $output) | |
| introduceParamLabels () | |
| getPriority () | |
Protected Attributes | |
| $priority = 51 | |
Protected Attributes inherited from Fixture | |
| $priority | |
| $fixtureModel | |
Generate images per each product Support next format: <product-images> <images-count>X</images-count> <images-per-product>Y</images-per-product> </product-images>
Where X - number of images to be generated Y - number of images that will be assigned per each product
note, that probably you would need to run command: php bin/magento catalog:images:resize to resize images after generation but be patient with it because it can take pretty much time
Definition at line 33 of file ImagesFixture.php.
| __construct | ( | FixtureModel | $fixtureModel, |
| \Magento\Framework\App\ResourceConnection | $resourceConnection, | ||
| \Magento\Setup\Fixtures\ImagesGenerator\ImagesGeneratorFactory | $imagesGeneratorFactory, | ||
| \Magento\Framework\Filesystem | $filesystem, | ||
| \Magento\Catalog\Model\Product\Media\Config | $mediaConfig, | ||
| \Magento\Eav\Model\AttributeRepository | $attributeRepository, | ||
| \Magento\Framework\DB\Sql\ColumnValueExpressionFactory | $expressionFactory, | ||
| \Magento\Setup\Model\BatchInsertFactory | $batchInsertFactory, | ||
| \Magento\Framework\EntityManager\MetadataPool | $metadataPool | ||
| ) |
| FixtureModel | $fixtureModel | |
| \Magento\Framework\App\ResourceConnection | $resourceConnection | |
| ImagesGenerator\ImagesGeneratorFactory | $imagesGeneratorFactory | |
| \Magento\Framework\Filesystem | $filesystem | |
| \Magento\Catalog\Model\Product\Media\Config | $mediaConfig | |
| \Magento\Eav\Model\AttributeRepository | $attributeRepository | |
| \Magento\Framework\DB\Sql\ColumnValueExpressionFactory | $expressionFactory | |
| \Magento\Setup\Model\BatchInsertFactory | $batchInsertFactory | |
| \Magento\Framework\EntityManager\MetadataPool | $metadataPool |
Definition at line 121 of file ImagesFixture.php.
| execute | ( | ) |
| getActionTitle | ( | ) |
| introduceParamLabels | ( | ) |
{}
Definition at line 167 of file ImagesFixture.php.
| printInfo | ( | OutputInterface | $output | ) |
|
protected |
Definition at line 38 of file ImagesFixture.php.