1 | <?php |
||
22 | class Builder implements FlowBuilderInterface, LoggerAwareInterface |
||
23 | { |
||
24 | use OptionalLoggerTrait; |
||
25 | |||
26 | /** |
||
27 | * @var string[] |
||
28 | */ |
||
29 | protected $namespaces = [ |
||
30 | '', // allow Fully qualified class names to be built |
||
31 | 'Graze\\DataFlow\\Flow\\', |
||
32 | 'Graze\\DataFlow\\Flow\\Collection\\', |
||
33 | 'Graze\\DataFlow\\Flow\\File\\', |
||
34 | 'Graze\\DataFlow\\Flow\\File\\Compression\\', |
||
35 | 'Graze\\DataFlow\\Flow\\Runner\\', |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * Add a namespace to check for flow names within |
||
40 | * |
||
41 | * @param string $namespace |
||
42 | * |
||
43 | * @return void |
||
44 | */ |
||
45 | 1 | public function addNamespace($namespace) |
|
49 | |||
50 | /** |
||
51 | * @return string[] |
||
52 | */ |
||
53 | 50 | public function getNamespaces() |
|
57 | |||
58 | /** |
||
59 | * Create a new Flow based on a name |
||
60 | * |
||
61 | * @param mixed $flowName |
||
62 | * @param array $arguments |
||
63 | * |
||
64 | * @return FlowInterface |
||
65 | */ |
||
66 | 51 | public function buildFlow($flowName, array $arguments = []) |
|
93 | } |
||
94 |