Skip to content

Commit 1a96771

Browse files
committed
Moved all Types into dedicated Flow/Types namespace for flow-php/types component
1 parent f1f3169 commit 1a96771

470 files changed

Lines changed: 10351 additions & 7532 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/monorepo-split.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
split_repository: 'filesystem'
4343
- local_path: 'src/lib/snappy'
4444
split_repository: 'snappy'
45+
- local_path: 'src/lib/types'
46+
split_repository: 'types'
4547

4648
- local_path: 'src/adapter/etl-adapter-avro'
4749
split_repository: 'etl-adapter-avro'

bin/docs.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
declare(strict_types=1);
55

66
use Flow\Documentation\{FunctionCollector, FunctionsExtractor};
7+
use Flow\ETL\Attribute\Module;
78
use Symfony\Component\Console\Application;
89
use Symfony\Component\Console\Command\Command;
910
use Symfony\Component\Console\Input\{InputArgument, InputInterface};
@@ -47,6 +48,7 @@ public function execute(InputInterface $input, OutputInterface $output) : int
4748
__DIR__ . '/../src/adapter/etl-adapter-text/src/Flow/ETL/Adapter/Text/functions.php',
4849
__DIR__ . '/../src/adapter/etl-adapter-xml/src/Flow/ETL/Adapter/XML/functions.php',
4950
__DIR__ . '/../src/lib/filesystem/src/Flow/Filesystem/DSL/functions.php',
51+
__DIR__ . '/../src/lib/types/src/Flow/Types/DSL/functions.php',
5052
__DIR__ . '/../src/bridge/filesystem/azure/src/Flow/Filesystem/Bridge/Azure/DSL/functions.php',
5153
__DIR__ . '/../src/bridge/filesystem/async-aws/src/Flow/Filesystem/Bridge/AsyncAWS/DSL/functions.php',
5254
__DIR__ . '/../src/lib/azure-sdk/src/Flow/Azure/SDK/DSL/functions.php',
@@ -60,6 +62,13 @@ public function execute(InputInterface $input, OutputInterface $output) : int
6062
$normalizedFunctions = [];
6163

6264
foreach ($extractor->extract($paths) as $function) {
65+
if (($attribute = $function->attributes->findByName('DocumentationDSL')) !== null) {
66+
67+
if ($attribute->arguments['module'] === Module::DEPRECATED) {
68+
continue;
69+
}
70+
}
71+
6372
$normalizedFunctions[] = $function->normalize();
6473
}
6574

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
"src/lib/parquet-viewer/src/Flow",
123123
"src/lib/parquet/src/Flow",
124124
"src/lib/snappy/src/Flow",
125+
"src/lib/types/src/Flow",
125126
"src/tools/documentation/src/Flow"
126127
],
127128
"Flow\\Doctrine\\Bulk\\": [
@@ -154,6 +155,7 @@
154155
"src/lib/filesystem/src/Flow/Filesystem/DSL/functions.php",
155156
"src/lib/parquet/src/Flow/Parquet/functions.php",
156157
"src/lib/parquet/src/stubs.php",
158+
"src/lib/types/src/Flow/Types/DSL/functions.php",
157159
"src/lib/snappy/polyfill.php"
158160
]
159161
},
@@ -187,6 +189,7 @@
187189
"src/lib/parquet-viewer/tests/Flow",
188190
"src/lib/parquet/tests/Flow",
189191
"src/lib/snappy/tests/Flow",
192+
"src/lib/types/tests/Flow",
190193
"src/tools/documentation/tests/Flow"
191194
],
192195
"Flow\\Doctrine\\Bulk\\Tests\\": [
@@ -227,6 +230,7 @@
227230
"@test:lib:parquet",
228231
"@test:lib:parquet-viewer",
229232
"@test:lib:snappy",
233+
"@test:lib:types",
230234
"@test:bridge:filesystem-azure",
231235
"@test:bridge:filesystem-async-aws",
232236
"@test:bridge:monolog-http",
@@ -276,6 +280,9 @@
276280
"test:lib:snappy": [
277281
"tools/phpunit/vendor/bin/phpunit --testsuite=lib-snappy-integration --log-junit ./var/phpunit/logs/lib-snappy-integration.junit.xml --coverage-clover=./var/phpunit/coverage/clover/lib-snappy-integration.coverage.xml --coverage-html=./var/phpunit/coverage/html/lib-snappy-integration"
278282
],
283+
"test:lib:types": [
284+
"tools/phpunit/vendor/bin/phpunit --testsuite=lib-types-unit --log-junit ./var/phpunit/logs/lib-types-unit.junit.xml --coverage-clover=./var/phpunit/coverage/clover/lib-types-unit.coverage.xml --coverage-html=./var/phpunit/coverage/html/lib-types-unit"
285+
],
279286
"test:bridge:filesystem-azure": [
280287
"tools/phpunit/vendor/bin/phpunit --testsuite=bridge-filesystem-azure-unit --log-junit ./var/phpunit/logs/bridge-filesystem-azure-unit.junit.xml --coverage-clover=./var/phpunit/coverage/clover/bridge-filesystem-azure-unit.coverage.xml --coverage-html=./var/phpunit/coverage/html/bridge-filesystem-azure-unit",
281288
"tools/phpunit/vendor/bin/phpunit --testsuite=bridge-filesystem-azure-integration --log-junit ./var/phpunit/logs/bridge-filesystem-azure-integration.junit.xml --coverage-clover=./var/phpunit/coverage/clover/bridge-filesystem-azure-integration.coverage.xml --coverage-html=./var/phpunit/coverage/html/bridge-filesystem-azure-integration"
@@ -403,6 +410,7 @@
403410
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/lib.parquet.xml",
404411
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/lib.parquet-viewer.xml",
405412
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/lib.snappy.xml",
413+
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/lib.types.xml",
406414
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/adapter.chartjs.xml",
407415
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/adapter.csv.xml",
408416
"./tools/phpdocumentor/vendor/bin/phpdoc --config=./phpdoc/adapter.doctrine.xml",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Types
2+
3+
- [⬅️️ Back](../../introduction.md)
4+
5+
## Installation
6+
7+
```
8+
composer require flow-php/types:~--FLOW_PHP_VERSION--
9+
```

examples/clean.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
exit(1);
1919
}
2020

21-
if (false === \in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
21+
if (false === in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
2222
print PHP_EOL . 'This script may only be invoked from a command line, got "' . PHP_SAPI . '"' . PHP_EOL;
2323

2424
exit(1);
2525
}
2626

27-
\ini_set('memory_limit', -1);
27+
ini_set('memory_limit', -1);
2828

2929
$finder = new Finder();
3030
$finder->in(__DIR__ . '/topics')

examples/run.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
exit(1);
1818
}
1919

20-
if (false === \in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
20+
if (false === in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
2121
print PHP_EOL . 'This script may only be invoked from a command line, got "' . PHP_SAPI . '"' . PHP_EOL;
2222

2323
exit(1);
2424
}
2525

26-
\ini_set('memory_limit', -1);
26+
ini_set('memory_limit', -1);
2727

2828
$output = new ConsoleOutput();
2929
$intput = new ArgvInput(definition: new InputDefinition(

0 commit comments

Comments
 (0)