--- title: Add compilerpass for demodata generator issue: NEXT-22797 author_github: @Dominik28111 --- # Core * 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()`. ___ # Upgrade Information ## Demodata generator registration in DI 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. ```xml ```