Dataflow Builder #11

Closed
opened 2026-01-23 11:21:42 +01:00 by admin · 1 comment
Owner

Originally created by @oportier on GitHub (Nov 18, 2019).

In the documentation, you say:

To help with creating your dataflow types, an abstract class CodeRhapsodie\DataflowBundle\DataflowType\AbstractDataflowType is provided, allowing you to define your dataflow through a handy builder CodeRhapsodie\DataflowBundle\DataflowType\DataflowBuilder.

Is there a command line builder to generate a generic Dataflow ? That would be handfull ;)

Originally created by @oportier on GitHub (Nov 18, 2019). In the documentation, you say: > To help with creating your dataflow types, an abstract class CodeRhapsodie\DataflowBundle\DataflowType\AbstractDataflowType is provided, allowing you to define your dataflow through a handy builder CodeRhapsodie\DataflowBundle\DataflowType\DataflowBuilder. Is there a command line builder to generate a generic Dataflow ? That would be handfull ;)
admin added the wontfix label 2026-01-23 11:21:42 +01:00
admin closed this issue 2026-01-23 11:21:42 +01:00
Author
Owner

@jeremycr commented on GitHub (Nov 21, 2019):

I'll assume you are talking about a DataflowType skeleton. It would look like this :

<?php

declare(strict_types=1);

namespace App\WorkflowType;

use CodeRhapsodie\DataflowBundle\DataflowType\AbstractDataflowType;
use CodeRhapsodie\DataflowBundle\DataflowType\DataflowBuilder;

class GenericDataflowType extends AbstractDataflowType
{
    public function getLabel(): string
    {
        // TODO: Implement getLabel() method.
    }

    protected function buildDataflow(DataflowBuilder $builder, array $options): void
    {
        // TODO: Implement buildDataflow() method.
    }
}

We currently have no plan of writing a command that would generate code.

You can look at this example to get an idea of what a complete dataflow type would look like.

If you need generic readers and writers, you can use those provided by PortPHP.

@jeremycr commented on GitHub (Nov 21, 2019): I'll assume you are talking about a DataflowType skeleton. It would look like this : ```php <?php declare(strict_types=1); namespace App\WorkflowType; use CodeRhapsodie\DataflowBundle\DataflowType\AbstractDataflowType; use CodeRhapsodie\DataflowBundle\DataflowType\DataflowBuilder; class GenericDataflowType extends AbstractDataflowType { public function getLabel(): string { // TODO: Implement getLabel() method. } protected function buildDataflow(DataflowBuilder $builder, array $options): void { // TODO: Implement buildDataflow() method. } } ``` We currently have no plan of writing a command that would generate code. You can look at this [example](https://github.com/code-rhapsodie/dataflow-example/blob/master/src/DataflowType/MyFirstDataflowType.php) to get an idea of what a complete dataflow type would look like. If you need generic readers and writers, you can use those provided by [PortPHP](https://github.com/portphp/portphp).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: code-rhapsodie/dataflow-bundle#11