getBody()->getContents(), true ); \${$cqrsVariableName} = \$this->{$cqrsBuilderVariableName}->build( \$data ); \$result = \$this->{$cqrsHandlerVariableName}->execute(\${$cqrsVariableName}); return new SuccessResponse('OK'); } } "; writeToFile($apiHandlerFilePath, $apiHandlerFileContent); $cqrsFileContent = "