CodeExplorer createFlows example
public function getDefinition(): string
{ return FlowDefinition::
class;
} public function generate(int
$numberOfItems, DemodataContext
$context, array
$options =
[]): void
{ $this->faker =
$context->
getFaker();
$this->io =
$context->
getConsole();
$this->
createFlows($context->
getContext(),
$numberOfItems);
} private function createFlows(Context
$context, int
$count): void
{ $this->io->
progressStart($count);
$this->
createTags($context);
$events =
$this->eventCollector->
collect($context)->
getElements();
$payload =
[];