Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 3 column 16
---
title: Add compilerpass for demodata generator
issue: NEXT-22797
author_github: @Dominik28111
---
- Added compilerpass
Shopware\Core\Framework\DependencyInjection\CompilerPass\DemodataGeneratorCompilerPass
. - Deprecated constructor of
Shopware\Core\Framework\Demodata\Event\DemodataRequestCreatedEvent
, parameter$input
will be required with v6.5.0. - Added method
Shopware\Core\Framework\Demodata\Event\DemodataRequestCreatedEvent::getInput()
, with v6.5.0 no null value will be returned anymore. - Added method
Shopware\Core\Framework\Demodata\Command\DemodataCommand::addDefault()
.
Demodata generators now accepts the following new attributes:
option-name
: Option name for the command, optional if command has no option.option-default
: Default value for the number of items to generate (Default: 0).option-description
: Description for the command line option, not required.
<service id="Shopware\Core\Framework\Demodata\Generator\PropertyGroupGenerator">
<argument type="service" id="property_group.repository" />
<tag name="shopware.demodata_generator" option-name="properties" option-default="10" option-description="Property group count (option count rand(30-300))"/>
</service>