binary-collections 2.0.13 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binaries/binary-executor.cjs +307 -238
- package/binaries/clean-nodemodule.cjs +307 -238
- package/binaries/clean-nodemodules.cjs +307 -238
- package/binaries/composer.cjs +323 -0
- package/binaries/composer.cmd +2 -0
- package/binaries/composer.phar +0 -0
- package/binaries/dev.cjs +307 -238
- package/binaries/empty.cjs +307 -238
- package/binaries/git-reduce-size.cjs +307 -238
- package/binaries/javakill.cjs +307 -238
- package/binaries/kill-process.cjs +307 -238
- package/binaries/nodekill.cjs +307 -238
- package/binaries/prod.cjs +307 -238
- package/binaries/py.cjs +307 -238
- package/binaries/rmfind.cjs +307 -238
- package/binaries/rmx.cjs +307 -238
- package/binaries/submodule-token.cjs +307 -238
- package/binaries/test-cjs.cjs +307 -238
- package/binaries/test-esm.cjs +307 -238
- package/binaries/yarn-clean.cjs +307 -238
- package/binaries/yc.cjs +307 -238
- package/binaries/ycw.cjs +307 -238
- package/docs-src/binary-collections.md +1 -1
- package/docs-src/clean-github-actions-caches.md +1 -1
- package/docs-src/copy-move-file.md +1 -4
- package/docs-src/del-ps.md +1 -1
- package/docs-src/find-node-modules.md +1 -1
- package/docs-src/generate-test-ci.md +56 -0
- package/docs-src/get-latest-workflow-status.md +100 -0
- package/docs-src/git-diff.md +1 -1
- package/docs-src/git-fix.md +1 -1
- package/docs-src/git-purge.md +1 -1
- package/docs-src/kill-night-crows.md +1 -1
- package/docs-src/node-cache-cleaner.md +2 -2
- package/docs-src/node-package-packer.md +1 -1
- package/docs-src/opencode-cli.md +127 -0
- package/docs-src/package-resolutions-updater.md +1 -1
- package/docs-src/rmpath.md +1 -1
- package/docs-src/run-by-checksum.md +1 -1
- package/docs-src/submodule-remove.md +1 -1
- package/docs-src/upload-backend.md +29 -0
- package/docs-src/vscode-cli.md +84 -0
- package/docs-src/workflow-badge.md +120 -0
- package/lib/binary-collections/config.cjs +14 -2
- package/lib/binary-collections/config.d.cts +10 -0
- package/lib/binary-collections/config.mjs +2 -2
- package/lib/binary-collections/findScript.cjs +43 -21
- package/lib/binary-collections/findScript.mjs +2 -2
- package/lib/binary-collections/listScript.cjs +43 -21
- package/lib/binary-collections/listScript.mjs +2 -2
- package/lib/binary-collections.cjs +43 -21
- package/lib/binary-collections.mjs +6 -6
- package/lib/chunk-2SJKVOTN.mjs +146 -0
- package/lib/{chunk-2MN4VPV2.mjs → chunk-3F6EIHYG.mjs} +2 -2
- package/lib/chunk-546KAIYT.mjs +113 -0
- package/lib/chunk-56BVU63B.mjs +86 -0
- package/lib/chunk-5WAOOOGZ.mjs +77 -0
- package/lib/chunk-72XTQ3CK.mjs +45 -0
- package/lib/chunk-7N52Z4IJ.mjs +39 -0
- package/lib/chunk-7Q6YEUQF.mjs +246 -0
- package/lib/{chunk-NQXUYO67.mjs → chunk-AJ3OIYYP.mjs} +43 -21
- package/lib/chunk-AQZ7LMFS.mjs +100 -0
- package/lib/chunk-BDCMTOZI.mjs +246 -0
- package/lib/chunk-BEUM4LH4.mjs +184 -0
- package/lib/{chunk-TBWXE7ST.mjs → chunk-BO4TZS4Q.mjs} +5 -2
- package/lib/chunk-CM3IC5YC.mjs +226 -0
- package/lib/{chunk-FLYSZFLW.mjs → chunk-D42YBRZW.mjs} +1 -1
- package/lib/chunk-FR3DMHJC.mjs +146 -0
- package/lib/chunk-I3O5ZRYU.mjs +77 -0
- package/lib/chunk-J4M5EL5P.mjs +108 -0
- package/lib/chunk-JK3MG2KF.mjs +236 -0
- package/lib/chunk-JMUFQSPE.mjs +184 -0
- package/lib/chunk-JVMLKHD2.mjs +62 -0
- package/lib/chunk-KAT2JNLZ.mjs +146 -0
- package/lib/{chunk-CD3HF3LK.mjs → chunk-KRCPFWIF.mjs} +6 -3
- package/lib/chunk-LACQTD5V.mjs +225 -0
- package/lib/chunk-MCCMMZSM.mjs +60 -0
- package/lib/chunk-OA2RKEY3.mjs +162 -0
- package/lib/{chunk-X2B3X7D4.mjs → chunk-PAZH45HS.mjs} +7 -1
- package/lib/chunk-QZMGBDSA.mjs +32 -0
- package/lib/chunk-RKPIBGKE.mjs +61 -0
- package/lib/chunk-SARIXFHP.mjs +44 -0
- package/lib/chunk-SJYP66BO.mjs +62 -0
- package/lib/chunk-SWUAEY4H.mjs +44 -0
- package/lib/chunk-TP3O2JGW.mjs +88 -0
- package/lib/chunk-UAIF5VIA.mjs +89 -0
- package/lib/chunk-UDZBVKXH.mjs +94 -0
- package/lib/chunk-UEOWRYAN.mjs +32 -0
- package/lib/chunk-UHPFLJXH.mjs +227 -0
- package/lib/chunk-UYNBNLV5.mjs +113 -0
- package/lib/chunk-WOC4FZ6F.mjs +164 -0
- package/lib/chunk-X7UVQ6ZC.mjs +183 -0
- package/lib/{chunk-RDN6HF5Z.mjs → chunk-XI67TI46.mjs} +1 -1
- package/lib/chunk-XW5NZAKI.mjs +82 -0
- package/lib/chunk-YLV4QATP.mjs +86 -0
- package/lib/chunk-YWSLMAQ7.mjs +65 -0
- package/lib/chunk-ZB4IQ6VJ.mjs +46 -0
- package/lib/cross-env/index.mjs +3 -3
- package/lib/del-gradle.cjs +1 -1
- package/lib/del-gradle.mjs +22 -16
- package/lib/del-node-modules.cjs +1 -1
- package/lib/del-node-modules.mjs +148 -142
- package/lib/find-node-modules-cli.cjs +1 -1
- package/lib/find-node-modules-cli.mjs +10 -4
- package/lib/{git-diff-cli.cjs → git/git-diff-cli.cjs} +18 -6
- package/lib/{git-diff-cli.mjs → git/git-diff-cli.mjs} +7 -7
- package/lib/{git-diff.cjs → git/git-diff.cjs} +16 -4
- package/lib/{git-diff.js → git/git-diff.js} +3 -3
- package/lib/{git-diff.mjs → git/git-diff.mjs} +6 -6
- package/lib/{git-fix.cjs → git/git-fix.cjs} +134 -3
- package/lib/{git-fix.mjs → git/git-fix.mjs} +19 -14
- package/lib/{git-purge.cjs → git/git-purge.cjs} +1 -1
- package/lib/{git-purge.mjs → git/git-purge.mjs} +4 -4
- package/lib/git/user-config.cjs +131 -1
- package/lib/git/user-config.mjs +3 -1
- package/lib/{clean-github-actions-caches-cli.cjs → github-workflows/clean-github-actions-caches-cli.cjs} +38 -10
- package/lib/{clean-github-actions-caches-cli.mjs → github-workflows/clean-github-actions-caches-cli.mjs} +7 -6
- package/lib/{clean-github-actions-caches.cjs → github-workflows/clean-github-actions-caches.cjs} +38 -10
- package/lib/{clean-github-actions-caches.mjs → github-workflows/clean-github-actions-caches.mjs} +5 -4
- package/lib/github-workflows/generate-test-ci-step-cli.cjs +240 -0
- package/lib/github-workflows/generate-test-ci-step-cli.d.mts +2 -0
- package/lib/github-workflows/generate-test-ci-step-cli.mjs +132 -0
- package/lib/github-workflows/get-latest-workflow-status-cli.cjs +541 -0
- package/lib/github-workflows/get-latest-workflow-status-cli.d.mts +2 -0
- package/lib/github-workflows/get-latest-workflow-status-cli.mjs +61 -0
- package/lib/github-workflows/get-latest-workflow-status.cjs +56 -0
- package/lib/github-workflows/get-latest-workflow-status.d.mts +1 -0
- package/lib/github-workflows/get-latest-workflow-status.mjs +8 -0
- package/lib/github-workflows/utils.cjs +271 -0
- package/lib/github-workflows/utils.d.cts +76 -0
- package/lib/github-workflows/utils.mjs +8 -0
- package/lib/github-workflows/workflow-badge-cli.cjs +722 -0
- package/lib/github-workflows/workflow-badge-cli.d.mts +2 -0
- package/lib/github-workflows/workflow-badge-cli.mjs +98 -0
- package/lib/github-workflows/workflow-badge-generator.cjs +200 -0
- package/lib/github-workflows/workflow-badge-generator.d.mts +14 -0
- package/lib/github-workflows/workflow-badge-generator.mjs +8 -0
- package/lib/github-workflows/workflow-test-data.cjs +73 -0
- package/lib/github-workflows/workflow-test-data.d.cts +63 -0
- package/lib/github-workflows/workflow-test-data.mjs +6 -0
- package/lib/opencode/cli/auth-rotate.cjs +143 -0
- package/lib/opencode/cli/auth-rotate.d.ts +1 -0
- package/lib/opencode/cli/auth-rotate.js +70 -0
- package/lib/opencode/cli/auth-rotate.mjs +10 -0
- package/lib/opencode/cli/list-projects.cjs +184 -0
- package/lib/opencode/cli/list-projects.d.ts +1 -0
- package/lib/opencode/cli/list-projects.js +32 -0
- package/lib/opencode/cli/list-projects.mjs +11 -0
- package/lib/opencode/cli/list-sessions.cjs +215 -0
- package/lib/opencode/cli/list-sessions.d.ts +1 -0
- package/lib/opencode/cli/list-sessions.js +45 -0
- package/lib/opencode/cli/list-sessions.mjs +11 -0
- package/lib/opencode/database.cjs +349 -0
- package/lib/opencode/database.d.ts +91 -0
- package/lib/opencode/database.js +252 -0
- package/lib/opencode/database.mjs +28 -0
- package/lib/opencode/database.runner.cjs +145 -0
- package/lib/opencode/database.runner.d.ts +1 -0
- package/lib/opencode/database.runner.js +56 -0
- package/lib/opencode/database.runner.mjs +37 -0
- package/lib/opencode/opencode-zen.runner.cjs +48 -0
- package/lib/opencode/opencode-zen.runner.d.mts +1 -0
- package/lib/opencode/opencode-zen.runner.mjs +31 -0
- package/lib/opencode/sqlite.cjs +114 -0
- package/lib/opencode/sqlite.d.ts +18 -0
- package/lib/opencode/sqlite.js +82 -0
- package/lib/opencode/sqlite.mjs +10 -0
- package/lib/opencode/storage.cjs +124 -0
- package/lib/opencode/storage.d.ts +27 -0
- package/lib/opencode/storage.js +101 -0
- package/lib/opencode/storage.mjs +38 -0
- package/lib/opencode/storage.runner.cjs +50 -0
- package/lib/opencode/storage.runner.d.ts +1 -0
- package/lib/opencode/storage.runner.js +13 -0
- package/lib/opencode/storage.runner.mjs +29 -0
- package/lib/opencode/types.cjs +17 -0
- package/lib/opencode/types.d.ts +31 -0
- package/lib/opencode/types.js +2 -0
- package/lib/opencode/types.mjs +7 -0
- package/lib/opencode/utils/check-api.cjs +59 -0
- package/lib/opencode/utils/check-api.d.ts +12 -0
- package/lib/opencode/utils/check-api.js +46 -0
- package/lib/opencode/utils/check-api.mjs +8 -0
- package/lib/opencode-cli.cjs +473 -0
- package/lib/opencode-cli.d.ts +2 -0
- package/lib/opencode-cli.js +115 -0
- package/lib/opencode-cli.mjs +111 -0
- package/lib/package-resolutions-updater-cli.cjs +181 -154
- package/lib/package-resolutions-updater-cli.mjs +3 -2
- package/lib/package-resolutions-updater.cjs +181 -154
- package/lib/package-resolutions-updater.d.mts +12 -3
- package/lib/package-resolutions-updater.mjs +3 -2
- package/lib/print-directory-tree.cjs +131 -3
- package/lib/print-directory-tree.mjs +6 -3
- package/lib/rmpath-cli.cjs +131 -5
- package/lib/rmpath-cli.mjs +3 -1
- package/lib/rmpath.cjs +147 -11
- package/lib/rmpath.mjs +3 -1
- package/lib/run-by-checksum/hash.cjs +18 -2
- package/lib/run-by-checksum/hash.d.ts +4 -1
- package/lib/run-by-checksum/hash.js +38 -4
- package/lib/run-by-checksum/hash.mjs +1 -1
- package/lib/run-by-checksum/run.cjs +18 -2
- package/lib/run-by-checksum/run.mjs +2 -2
- package/lib/run-by-checksum-cli.cjs +18 -2
- package/lib/run-by-checksum-cli.mjs +2 -2
- package/lib/submodule-install.cjs +130 -4
- package/lib/submodule-install.mjs +5 -4
- package/lib/submodule-remove-cli.cjs +131 -5
- package/lib/submodule-remove-cli.mjs +3 -1
- package/lib/submodule-remove.cjs +146 -5
- package/lib/submodule-remove.mjs +3 -1
- package/lib/utils/findEnvFiles.cjs +3 -0
- package/lib/utils/findEnvFiles.d.cts +2 -2
- package/lib/utils/findEnvFiles.mjs +1 -1
- package/lib/vscode/project.cjs +0 -0
- package/lib/vscode/project.d.ts +0 -0
- package/lib/vscode/project.js +1 -0
- package/lib/vscode/project.mjs +7 -0
- package/lib/vscode/storage.cjs +138 -0
- package/lib/vscode/storage.d.ts +51 -0
- package/lib/vscode/storage.js +169 -0
- package/lib/vscode/storage.mjs +42 -0
- package/lib/vscode/storage.runner.cjs +125 -0
- package/lib/vscode/storage.runner.d.ts +1 -0
- package/lib/vscode/storage.runner.js +47 -0
- package/lib/vscode/storage.runner.mjs +60 -0
- package/lib/vscode-cli.cjs +155 -0
- package/lib/vscode-cli.d.ts +2 -0
- package/lib/vscode-cli.js +80 -0
- package/lib/vscode-cli.mjs +71 -0
- package/package.json +43 -21
- package/readme.md +41 -8
- package/releases/readme.md +1 -1
- package/src/github-workflows/generate-test-ci-step-cli.mjs +126 -0
- package/vendor/clue/ndjson-react/README.md +365 -0
- package/vendor/composer/pcre/README.md +189 -0
- package/vendor/composer/semver/README.md +99 -0
- package/vendor/composer/xdebug-handler/README.md +305 -0
- package/vendor/ergebnis/agent-detector/README.md +107 -0
- package/vendor/evenement/evenement/README.md +64 -0
- package/vendor/fidry/cpu-core-counter/README.md +138 -0
- package/vendor/friendsofphp/php-cs-fixer/README.md +97 -0
- package/vendor/psr/container/README.md +13 -0
- package/vendor/psr/event-dispatcher/README.md +6 -0
- package/vendor/psr/log/README.md +58 -0
- package/vendor/react/cache/README.md +367 -0
- package/vendor/react/child-process/README.md +619 -0
- package/vendor/react/dns/README.md +453 -0
- package/vendor/react/event-loop/README.md +930 -0
- package/vendor/react/promise/README.md +722 -0
- package/vendor/react/socket/README.md +1564 -0
- package/vendor/react/stream/README.md +1249 -0
- package/vendor/sebastian/diff/README.md +151 -0
- package/vendor/symfony/console/README.md +30 -0
- package/vendor/symfony/deprecation-contracts/README.md +26 -0
- package/vendor/symfony/event-dispatcher/README.md +25 -0
- package/vendor/symfony/event-dispatcher-contracts/README.md +9 -0
- package/vendor/symfony/filesystem/README.md +23 -0
- package/vendor/symfony/finder/README.md +24 -0
- package/vendor/symfony/options-resolver/README.md +25 -0
- package/vendor/symfony/polyfill-ctype/README.md +12 -0
- package/vendor/symfony/polyfill-intl-grapheme/README.md +32 -0
- package/vendor/symfony/polyfill-intl-normalizer/README.md +14 -0
- package/vendor/symfony/polyfill-mbstring/README.md +13 -0
- package/vendor/symfony/polyfill-php80/README.md +25 -0
- package/vendor/symfony/polyfill-php81/README.md +18 -0
- package/vendor/symfony/polyfill-php84/README.md +23 -0
- package/vendor/symfony/polyfill-php85/README.md +20 -0
- package/vendor/symfony/process/README.md +23 -0
- package/vendor/symfony/service-contracts/README.md +9 -0
- package/vendor/symfony/stopwatch/README.md +52 -0
- package/vendor/symfony/string/README.md +24 -0
- package/lib/del-gradle.js +0 -16
- package/lib/del-node-modules.js +0 -211
- package/lib/find-node-modules-cli.js +0 -4
- /package/lib/{clean-github-actions-caches-cli.d.cts → del-gradle.d.cts} +0 -0
- /package/lib/{del-gradle.d.ts → del-node-modules.d.cts} +0 -0
- /package/lib/{find-node-modules-cli.d.ts → find-node-modules-cli.d.cts} +0 -0
- /package/lib/{git-diff-cli.d.ts → git/git-diff-cli.d.ts} +0 -0
- /package/lib/{git-diff-cli.js → git/git-diff-cli.js} +0 -0
- /package/lib/{git-diff.d.ts → git/git-diff.d.ts} +0 -0
- /package/lib/{git-fix.d.cts → git/git-fix.d.cts} +0 -0
- /package/lib/{git-purge.d.cts → git/git-purge.d.cts} +0 -0
- /package/lib/{del-node-modules.d.ts → github-workflows/clean-github-actions-caches-cli.d.cts} +0 -0
- /package/lib/{clean-github-actions-caches.d.cts → github-workflows/clean-github-actions-caches.d.cts} +0 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
[](https://packagist.org/packages/sebastian/diff)
|
|
2
|
+
[](https://github.com/sebastianbergmann/diff/actions)
|
|
3
|
+
[](https://codecov.io/gh/sebastianbergmann/diff)
|
|
4
|
+
|
|
5
|
+
# sebastian/diff
|
|
6
|
+
|
|
7
|
+
Diff implementation for PHP, factored out of PHPUnit into a stand-alone component.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
composer require sebastian/diff
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
composer require --dev sebastian/diff
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Usage
|
|
24
|
+
|
|
25
|
+
#### Generating diff
|
|
26
|
+
|
|
27
|
+
The `Differ` class can be used to generate a textual representation of the difference between two strings:
|
|
28
|
+
|
|
29
|
+
```php
|
|
30
|
+
<?php declare(strict_types=1);
|
|
31
|
+
use SebastianBergmann\Diff\Differ;
|
|
32
|
+
use SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder;
|
|
33
|
+
|
|
34
|
+
$differ = new Differ(new UnifiedDiffOutputBuilder);
|
|
35
|
+
|
|
36
|
+
print $differ->diff('foo', 'bar');
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The code above yields the output below:
|
|
40
|
+
|
|
41
|
+
```diff
|
|
42
|
+
--- Original
|
|
43
|
+
+++ New
|
|
44
|
+
@@ @@
|
|
45
|
+
-foo
|
|
46
|
+
+bar
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The `UnifiedDiffOutputBuilder` used in the example above generates output in "unified diff"
|
|
50
|
+
format and is used by PHPUnit, for example.
|
|
51
|
+
|
|
52
|
+
The `StrictUnifiedDiffOutputBuilder` generates output in "strict unified diff" format with
|
|
53
|
+
hunks, similar to `diff -u` and compatible with `patch` or `git apply`.
|
|
54
|
+
|
|
55
|
+
The `DiffOnlyOutputBuilder` generates output that only contains the lines that differ.
|
|
56
|
+
|
|
57
|
+
If none of these three output builders match your use case then you can implement
|
|
58
|
+
`DiffOutputBuilderInterface` to generate custom output.
|
|
59
|
+
|
|
60
|
+
#### Parsing diff
|
|
61
|
+
|
|
62
|
+
The `Parser` class can be used to parse a unified diff into an object graph:
|
|
63
|
+
|
|
64
|
+
```php
|
|
65
|
+
use SebastianBergmann\Diff\Parser;
|
|
66
|
+
use SebastianBergmann\Git;
|
|
67
|
+
|
|
68
|
+
$git = new Git('/usr/local/src/money');
|
|
69
|
+
|
|
70
|
+
$diff = $git->getDiff(
|
|
71
|
+
'948a1a07768d8edd10dcefa8315c1cbeffb31833',
|
|
72
|
+
'c07a373d2399f3e686234c4f7f088d635eb9641b'
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
$parser = new Parser;
|
|
76
|
+
|
|
77
|
+
print_r($parser->parse($diff));
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The code above yields the output below:
|
|
81
|
+
|
|
82
|
+
Array
|
|
83
|
+
(
|
|
84
|
+
[0] => SebastianBergmann\Diff\Diff Object
|
|
85
|
+
(
|
|
86
|
+
[from:SebastianBergmann\Diff\Diff:private] => a/tests/MoneyTest.php
|
|
87
|
+
[to:SebastianBergmann\Diff\Diff:private] => b/tests/MoneyTest.php
|
|
88
|
+
[chunks:SebastianBergmann\Diff\Diff:private] => Array
|
|
89
|
+
(
|
|
90
|
+
[0] => SebastianBergmann\Diff\Chunk Object
|
|
91
|
+
(
|
|
92
|
+
[start:SebastianBergmann\Diff\Chunk:private] => 87
|
|
93
|
+
[startRange:SebastianBergmann\Diff\Chunk:private] => 7
|
|
94
|
+
[end:SebastianBergmann\Diff\Chunk:private] => 87
|
|
95
|
+
[endRange:SebastianBergmann\Diff\Chunk:private] => 7
|
|
96
|
+
[lines:SebastianBergmann\Diff\Chunk:private] => Array
|
|
97
|
+
(
|
|
98
|
+
[0] => SebastianBergmann\Diff\Line Object
|
|
99
|
+
(
|
|
100
|
+
[type:SebastianBergmann\Diff\Line:private] => 3
|
|
101
|
+
[content:SebastianBergmann\Diff\Line:private] => * @covers SebastianBergmann\Money\Money::add
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
[1] => SebastianBergmann\Diff\Line Object
|
|
105
|
+
(
|
|
106
|
+
[type:SebastianBergmann\Diff\Line:private] => 3
|
|
107
|
+
[content:SebastianBergmann\Diff\Line:private] => * @covers SebastianBergmann\Money\Money::newMoney
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
[2] => SebastianBergmann\Diff\Line Object
|
|
111
|
+
(
|
|
112
|
+
[type:SebastianBergmann\Diff\Line:private] => 3
|
|
113
|
+
[content:SebastianBergmann\Diff\Line:private] => */
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
[3] => SebastianBergmann\Diff\Line Object
|
|
117
|
+
(
|
|
118
|
+
[type:SebastianBergmann\Diff\Line:private] => 2
|
|
119
|
+
[content:SebastianBergmann\Diff\Line:private] => public function testAnotherMoneyWithSameCurrencyObjectCanBeAdded()
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
[4] => SebastianBergmann\Diff\Line Object
|
|
123
|
+
(
|
|
124
|
+
[type:SebastianBergmann\Diff\Line:private] => 1
|
|
125
|
+
[content:SebastianBergmann\Diff\Line:private] => public function testAnotherMoneyObjectWithSameCurrencyCanBeAdded()
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
[5] => SebastianBergmann\Diff\Line Object
|
|
129
|
+
(
|
|
130
|
+
[type:SebastianBergmann\Diff\Line:private] => 3
|
|
131
|
+
[content:SebastianBergmann\Diff\Line:private] => {
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
[6] => SebastianBergmann\Diff\Line Object
|
|
135
|
+
(
|
|
136
|
+
[type:SebastianBergmann\Diff\Line:private] => 3
|
|
137
|
+
[content:SebastianBergmann\Diff\Line:private] => $a = new Money(1, new Currency('EUR'));
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
[7] => SebastianBergmann\Diff\Line Object
|
|
141
|
+
(
|
|
142
|
+
[type:SebastianBergmann\Diff\Line:private] => 3
|
|
143
|
+
[content:SebastianBergmann\Diff\Line:private] => $b = new Money(2, new Currency('EUR'));
|
|
144
|
+
)
|
|
145
|
+
)
|
|
146
|
+
)
|
|
147
|
+
)
|
|
148
|
+
)
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
Note: If the chunk size is 0 lines, i.e., `getStartRange()` or `getEndRange()` return 0, the number of line returned by `getStart()` or `getEnd()` is one lower than one would expect. It is the line number after which the chunk should be inserted or deleted; in all other cases, it gives the first line number of the replaced range of lines.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Console Component
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
The Console component eases the creation of beautiful and testable command line
|
|
5
|
+
interfaces.
|
|
6
|
+
|
|
7
|
+
Sponsor
|
|
8
|
+
-------
|
|
9
|
+
|
|
10
|
+
This package is looking for a [backer][1].
|
|
11
|
+
|
|
12
|
+
Help Symfony by [sponsoring][3] its development!
|
|
13
|
+
|
|
14
|
+
Resources
|
|
15
|
+
---------
|
|
16
|
+
|
|
17
|
+
* [Documentation](https://symfony.com/doc/current/components/console.html)
|
|
18
|
+
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
|
19
|
+
* [Report issues](https://github.com/symfony/symfony/issues) and
|
|
20
|
+
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
|
21
|
+
in the [main Symfony repository](https://github.com/symfony/symfony)
|
|
22
|
+
|
|
23
|
+
Credits
|
|
24
|
+
-------
|
|
25
|
+
|
|
26
|
+
`Resources/bin/hiddeninput.exe` is a third party binary provided within this
|
|
27
|
+
component. Find sources and license at https://github.com/Seldaek/hidden-input.
|
|
28
|
+
|
|
29
|
+
[1]: https://symfony.com/backers
|
|
30
|
+
[3]: https://symfony.com/sponsor
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Symfony Deprecation Contracts
|
|
2
|
+
=============================
|
|
3
|
+
|
|
4
|
+
A generic function and convention to trigger deprecation notices.
|
|
5
|
+
|
|
6
|
+
This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices.
|
|
7
|
+
|
|
8
|
+
By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component,
|
|
9
|
+
the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments.
|
|
10
|
+
|
|
11
|
+
The function requires at least 3 arguments:
|
|
12
|
+
- the name of the Composer package that is triggering the deprecation
|
|
13
|
+
- the version of the package that introduced the deprecation
|
|
14
|
+
- the message of the deprecation
|
|
15
|
+
- more arguments can be provided: they will be inserted in the message using `printf()` formatting
|
|
16
|
+
|
|
17
|
+
Example:
|
|
18
|
+
```php
|
|
19
|
+
trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin');
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
This will generate the following message:
|
|
23
|
+
`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
|
|
24
|
+
|
|
25
|
+
While not recommended, the deprecation notices can be completely ignored by declaring an empty
|
|
26
|
+
`function trigger_deprecation() {}` in your application.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
EventDispatcher Component
|
|
2
|
+
=========================
|
|
3
|
+
|
|
4
|
+
The EventDispatcher component provides tools that allow your application
|
|
5
|
+
components to communicate with each other by dispatching events and listening to
|
|
6
|
+
them.
|
|
7
|
+
|
|
8
|
+
Sponsor
|
|
9
|
+
-------
|
|
10
|
+
|
|
11
|
+
This package is looking for a [backer][1].
|
|
12
|
+
|
|
13
|
+
Help Symfony by [sponsoring][3] its development!
|
|
14
|
+
|
|
15
|
+
Resources
|
|
16
|
+
---------
|
|
17
|
+
|
|
18
|
+
* [Documentation](https://symfony.com/doc/current/components/event_dispatcher.html)
|
|
19
|
+
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
|
20
|
+
* [Report issues](https://github.com/symfony/symfony/issues) and
|
|
21
|
+
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
|
22
|
+
in the [main Symfony repository](https://github.com/symfony/symfony)
|
|
23
|
+
|
|
24
|
+
[1]: https://symfony.com/backers
|
|
25
|
+
[3]: https://symfony.com/sponsor
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Symfony EventDispatcher Contracts
|
|
2
|
+
=================================
|
|
3
|
+
|
|
4
|
+
A set of abstractions extracted out of the Symfony components.
|
|
5
|
+
|
|
6
|
+
Can be used to build on semantics that the Symfony components proved useful and
|
|
7
|
+
that already have battle tested implementations.
|
|
8
|
+
|
|
9
|
+
See https://github.com/symfony/contracts/blob/main/README.md for more information.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Filesystem Component
|
|
2
|
+
====================
|
|
3
|
+
|
|
4
|
+
The Filesystem component provides basic utilities for the filesystem.
|
|
5
|
+
|
|
6
|
+
Sponsor
|
|
7
|
+
-------
|
|
8
|
+
|
|
9
|
+
This package is looking for a [backer][1].
|
|
10
|
+
|
|
11
|
+
Help Symfony by [sponsoring][3] its development!
|
|
12
|
+
|
|
13
|
+
Resources
|
|
14
|
+
---------
|
|
15
|
+
|
|
16
|
+
* [Documentation](https://symfony.com/doc/current/components/filesystem.html)
|
|
17
|
+
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
|
18
|
+
* [Report issues](https://github.com/symfony/symfony/issues) and
|
|
19
|
+
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
|
20
|
+
in the [main Symfony repository](https://github.com/symfony/symfony)
|
|
21
|
+
|
|
22
|
+
[1]: https://symfony.com/backers
|
|
23
|
+
[3]: https://symfony.com/sponsor
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Finder Component
|
|
2
|
+
================
|
|
3
|
+
|
|
4
|
+
The Finder component finds files and directories via an intuitive fluent
|
|
5
|
+
interface.
|
|
6
|
+
|
|
7
|
+
Sponsor
|
|
8
|
+
-------
|
|
9
|
+
|
|
10
|
+
This package is looking for a [backer][1].
|
|
11
|
+
|
|
12
|
+
Help Symfony by [sponsoring][3] its development!
|
|
13
|
+
|
|
14
|
+
Resources
|
|
15
|
+
---------
|
|
16
|
+
|
|
17
|
+
* [Documentation](https://symfony.com/doc/current/components/finder.html)
|
|
18
|
+
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
|
19
|
+
* [Report issues](https://github.com/symfony/symfony/issues) and
|
|
20
|
+
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
|
21
|
+
in the [main Symfony repository](https://github.com/symfony/symfony)
|
|
22
|
+
|
|
23
|
+
[1]: https://symfony.com/backers
|
|
24
|
+
[3]: https://symfony.com/sponsor
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
OptionsResolver Component
|
|
2
|
+
=========================
|
|
3
|
+
|
|
4
|
+
The OptionsResolver component is `array_replace` on steroids. It allows you to
|
|
5
|
+
create an options system with required options, defaults, validation (type,
|
|
6
|
+
value), normalization and more.
|
|
7
|
+
|
|
8
|
+
Sponsor
|
|
9
|
+
-------
|
|
10
|
+
|
|
11
|
+
This package is looking for a [backer][1].
|
|
12
|
+
|
|
13
|
+
Help Symfony by [sponsoring][3] its development!
|
|
14
|
+
|
|
15
|
+
Resources
|
|
16
|
+
---------
|
|
17
|
+
|
|
18
|
+
* [Documentation](https://symfony.com/doc/current/components/options_resolver.html)
|
|
19
|
+
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
|
20
|
+
* [Report issues](https://github.com/symfony/symfony/issues) and
|
|
21
|
+
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
|
22
|
+
in the [main Symfony repository](https://github.com/symfony/symfony)
|
|
23
|
+
|
|
24
|
+
[1]: https://symfony.com/backers
|
|
25
|
+
[3]: https://symfony.com/sponsor
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Symfony Polyfill / Ctype
|
|
2
|
+
========================
|
|
3
|
+
|
|
4
|
+
This component provides `ctype_*` functions to users who run php versions without the ctype extension.
|
|
5
|
+
|
|
6
|
+
More information can be found in the
|
|
7
|
+
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
|
|
8
|
+
|
|
9
|
+
License
|
|
10
|
+
=======
|
|
11
|
+
|
|
12
|
+
This library is released under the [MIT license](LICENSE).
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Symfony Polyfill / Intl: Grapheme
|
|
2
|
+
=================================
|
|
3
|
+
|
|
4
|
+
This component provides a partial, native PHP implementation of the
|
|
5
|
+
[Grapheme functions](https://php.net/intl.grapheme) from the
|
|
6
|
+
[Intl](https://php.net/intl) extension.
|
|
7
|
+
|
|
8
|
+
- [`grapheme_extract`](https://php.net/grapheme_extract): Extract a sequence of grapheme
|
|
9
|
+
clusters from a text buffer, which must be encoded in UTF-8
|
|
10
|
+
- [`grapheme_stripos`](https://php.net/grapheme_stripos): Find position (in grapheme units)
|
|
11
|
+
of first occurrence of a case-insensitive string
|
|
12
|
+
- [`grapheme_stristr`](https://php.net/grapheme_stristr): Returns part of haystack string
|
|
13
|
+
from the first occurrence of case-insensitive needle to the end of haystack
|
|
14
|
+
- [`grapheme_strlen`](https://php.net/grapheme_strlen): Get string length in grapheme units
|
|
15
|
+
- [`grapheme_strpos`](https://php.net/grapheme_strpos): Find position (in grapheme units)
|
|
16
|
+
of first occurrence of a string
|
|
17
|
+
- [`grapheme_strripos`](https://php.net/grapheme_strripos): Find position (in grapheme units)
|
|
18
|
+
of last occurrence of a case-insensitive string
|
|
19
|
+
- [`grapheme_strrpos`](https://php.net/grapheme_strrpos): Find position (in grapheme units)
|
|
20
|
+
of last occurrence of a string
|
|
21
|
+
- [`grapheme_strstr`](https://php.net/grapheme_strstr): Returns part of haystack string from
|
|
22
|
+
the first occurrence of needle to the end of haystack
|
|
23
|
+
- [`grapheme_substr`](https://php.net/grapheme_substr): Return part of a string
|
|
24
|
+
- [`grapheme_str_split`](https://php.net/grapheme_str_split): Splits a string into an array of individual or chunks of graphemes
|
|
25
|
+
|
|
26
|
+
More information can be found in the
|
|
27
|
+
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
|
|
28
|
+
|
|
29
|
+
License
|
|
30
|
+
=======
|
|
31
|
+
|
|
32
|
+
This library is released under the [MIT license](LICENSE).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Symfony Polyfill / Intl: Normalizer
|
|
2
|
+
===================================
|
|
3
|
+
|
|
4
|
+
This component provides a fallback implementation for the
|
|
5
|
+
[`Normalizer`](https://php.net/Normalizer) class provided
|
|
6
|
+
by the [Intl](https://php.net/intl) extension.
|
|
7
|
+
|
|
8
|
+
More information can be found in the
|
|
9
|
+
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
|
|
10
|
+
|
|
11
|
+
License
|
|
12
|
+
=======
|
|
13
|
+
|
|
14
|
+
This library is released under the [MIT license](LICENSE).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Symfony Polyfill / Mbstring
|
|
2
|
+
===========================
|
|
3
|
+
|
|
4
|
+
This component provides a partial, native PHP implementation for the
|
|
5
|
+
[Mbstring](https://php.net/mbstring) extension.
|
|
6
|
+
|
|
7
|
+
More information can be found in the
|
|
8
|
+
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
|
|
9
|
+
|
|
10
|
+
License
|
|
11
|
+
=======
|
|
12
|
+
|
|
13
|
+
This library is released under the [MIT license](LICENSE).
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Symfony Polyfill / Php80
|
|
2
|
+
========================
|
|
3
|
+
|
|
4
|
+
This component provides features added to PHP 8.0 core:
|
|
5
|
+
|
|
6
|
+
- [`Stringable`](https://php.net/stringable) interface
|
|
7
|
+
- [`fdiv`](https://php.net/fdiv)
|
|
8
|
+
- [`ValueError`](https://php.net/valueerror) class
|
|
9
|
+
- [`UnhandledMatchError`](https://php.net/unhandledmatcherror) class
|
|
10
|
+
- `FILTER_VALIDATE_BOOL` constant
|
|
11
|
+
- [`get_debug_type`](https://php.net/get_debug_type)
|
|
12
|
+
- [`PhpToken`](https://php.net/phptoken) class
|
|
13
|
+
- [`preg_last_error_msg`](https://php.net/preg_last_error_msg)
|
|
14
|
+
- [`str_contains`](https://php.net/str_contains)
|
|
15
|
+
- [`str_starts_with`](https://php.net/str_starts_with)
|
|
16
|
+
- [`str_ends_with`](https://php.net/str_ends_with)
|
|
17
|
+
- [`get_resource_id`](https://php.net/get_resource_id)
|
|
18
|
+
|
|
19
|
+
More information can be found in the
|
|
20
|
+
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
|
|
21
|
+
|
|
22
|
+
License
|
|
23
|
+
=======
|
|
24
|
+
|
|
25
|
+
This library is released under the [MIT license](LICENSE).
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Symfony Polyfill / Php81
|
|
2
|
+
========================
|
|
3
|
+
|
|
4
|
+
This component provides features added to PHP 8.1 core:
|
|
5
|
+
|
|
6
|
+
- [`array_is_list`](https://php.net/array_is_list)
|
|
7
|
+
- [`enum_exists`](https://php.net/enum-exists)
|
|
8
|
+
- [`MYSQLI_REFRESH_REPLICA`](https://php.net/mysqli.constants#constantmysqli-refresh-replica) constant
|
|
9
|
+
- [`ReturnTypeWillChange`](https://wiki.php.net/rfc/internal_method_return_types)
|
|
10
|
+
- [`CURLStringFile`](https://php.net/CURLStringFile) (but only if PHP >= 7.4 is used)
|
|
11
|
+
|
|
12
|
+
More information can be found in the
|
|
13
|
+
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
|
|
14
|
+
|
|
15
|
+
License
|
|
16
|
+
=======
|
|
17
|
+
|
|
18
|
+
This library is released under the [MIT license](LICENSE).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Symfony Polyfill / Php84
|
|
2
|
+
========================
|
|
3
|
+
|
|
4
|
+
This component provides features added to PHP 8.4 core:
|
|
5
|
+
|
|
6
|
+
- [`array_find`, `array_find_key`, `array_any` and `array_all`](https://wiki.php.net/rfc/array_find)
|
|
7
|
+
- [`bcdivmod`](https://wiki.php.net/rfc/add_bcdivmod_to_bcmath)
|
|
8
|
+
- [`Deprecated`](https://wiki.php.net/rfc/deprecated_attribute)
|
|
9
|
+
- `CURL_HTTP_VERSION_3` and `CURL_HTTP_VERSION_3ONLY` constants
|
|
10
|
+
- [`fpow`](https://wiki.php.net/rfc/raising_zero_to_power_of_negative_number)
|
|
11
|
+
- [`grapheme_str_split`](https://wiki.php.net/rfc/grapheme_str_split)
|
|
12
|
+
- [`mb_trim`, `mb_ltrim` and `mb_rtrim`](https://wiki.php.net/rfc/mb_trim)
|
|
13
|
+
- [`mb_ucfirst` and `mb_lcfirst`](https://wiki.php.net/rfc/mb_ucfirst)
|
|
14
|
+
- [`PDO` driver specific sub-classes](https://wiki.php.net/rfc/pdo_driver_specific_subclasses)
|
|
15
|
+
- [`ReflectionConstant`](https://github.com/php/php-src/pull/13669)
|
|
16
|
+
|
|
17
|
+
More information can be found in the
|
|
18
|
+
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
|
|
19
|
+
|
|
20
|
+
License
|
|
21
|
+
=======
|
|
22
|
+
|
|
23
|
+
This library is released under the [MIT license](LICENSE).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Symfony Polyfill / Php85
|
|
2
|
+
========================
|
|
3
|
+
|
|
4
|
+
This component provides features added to PHP 8.5 core:
|
|
5
|
+
|
|
6
|
+
- [`get_error_handler` and `get_exception_handler`](https://wiki.php.net/rfc/get-error-exception-handler)
|
|
7
|
+
- [`NoDiscard`](https://wiki.php.net/rfc/marking_return_value_as_important)
|
|
8
|
+
- [`array_first` and `array_last`](https://wiki.php.net/rfc/array_first_last)
|
|
9
|
+
- [`DelayedTargetValidation`](https://wiki.php.net/rfc/delayedtargetvalidation_attribute)
|
|
10
|
+
- [`Filter\FilterException class`](https://wiki.php.net/rfc/filter_throw_on_failure)
|
|
11
|
+
- [`Filter\FilterFailedException class`](https://wiki.php.net/rfc/filter_throw_on_failure)
|
|
12
|
+
- [`locale_is_right_to_left`](https://php.watch/versions/8.5/locale_is_right_to_left-Locale-isRightToleft)
|
|
13
|
+
|
|
14
|
+
More information can be found in the
|
|
15
|
+
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
|
|
16
|
+
|
|
17
|
+
License
|
|
18
|
+
=======
|
|
19
|
+
|
|
20
|
+
This library is released under the [MIT license](LICENSE).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Process Component
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
The Process component executes commands in sub-processes.
|
|
5
|
+
|
|
6
|
+
Sponsor
|
|
7
|
+
-------
|
|
8
|
+
|
|
9
|
+
This package is looking for a [backer][1].
|
|
10
|
+
|
|
11
|
+
Help Symfony by [sponsoring][3] its development!
|
|
12
|
+
|
|
13
|
+
Resources
|
|
14
|
+
---------
|
|
15
|
+
|
|
16
|
+
* [Documentation](https://symfony.com/doc/current/components/process.html)
|
|
17
|
+
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
|
18
|
+
* [Report issues](https://github.com/symfony/symfony/issues) and
|
|
19
|
+
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
|
20
|
+
in the [main Symfony repository](https://github.com/symfony/symfony)
|
|
21
|
+
|
|
22
|
+
[1]: https://symfony.com/backers
|
|
23
|
+
[3]: https://symfony.com/sponsor
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Symfony Service Contracts
|
|
2
|
+
=========================
|
|
3
|
+
|
|
4
|
+
A set of abstractions extracted out of the Symfony components.
|
|
5
|
+
|
|
6
|
+
Can be used to build on semantics that the Symfony components proved useful and
|
|
7
|
+
that already have battle tested implementations.
|
|
8
|
+
|
|
9
|
+
See https://github.com/symfony/contracts/blob/main/README.md for more information.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Stopwatch Component
|
|
2
|
+
===================
|
|
3
|
+
|
|
4
|
+
The Stopwatch component provides a way to profile code.
|
|
5
|
+
|
|
6
|
+
Getting Started
|
|
7
|
+
---------------
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
composer require symfony/stopwatch
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```php
|
|
14
|
+
use Symfony\Component\Stopwatch\Stopwatch;
|
|
15
|
+
|
|
16
|
+
$stopwatch = new Stopwatch();
|
|
17
|
+
|
|
18
|
+
// optionally group events into sections (e.g. phases of the execution)
|
|
19
|
+
$stopwatch->openSection();
|
|
20
|
+
|
|
21
|
+
// starts event named 'eventName'
|
|
22
|
+
$stopwatch->start('eventName');
|
|
23
|
+
|
|
24
|
+
// ... run your code here
|
|
25
|
+
|
|
26
|
+
// optionally, start a new "lap" time
|
|
27
|
+
$stopwatch->lap('foo');
|
|
28
|
+
|
|
29
|
+
// ... run your code here
|
|
30
|
+
|
|
31
|
+
$event = $stopwatch->stop('eventName');
|
|
32
|
+
|
|
33
|
+
$stopwatch->stopSection('phase_1');
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Sponsor
|
|
37
|
+
-------
|
|
38
|
+
|
|
39
|
+
This package is looking for a [backer][1].
|
|
40
|
+
|
|
41
|
+
Help Symfony by [sponsoring][3] its development!
|
|
42
|
+
|
|
43
|
+
Resources
|
|
44
|
+
---------
|
|
45
|
+
|
|
46
|
+
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
|
47
|
+
* [Report issues](https://github.com/symfony/symfony/issues) and
|
|
48
|
+
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
|
49
|
+
in the [main Symfony repository](https://github.com/symfony/symfony)
|
|
50
|
+
|
|
51
|
+
[1]: https://symfony.com/backers
|
|
52
|
+
[3]: https://symfony.com/sponsor
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
String Component
|
|
2
|
+
================
|
|
3
|
+
|
|
4
|
+
The String component provides an object-oriented API to strings and deals
|
|
5
|
+
with bytes, UTF-8 code points and grapheme clusters in a unified way.
|
|
6
|
+
|
|
7
|
+
Sponsor
|
|
8
|
+
-------
|
|
9
|
+
|
|
10
|
+
This package is looking for a [backer][1].
|
|
11
|
+
|
|
12
|
+
Help Symfony by [sponsoring][3] its development!
|
|
13
|
+
|
|
14
|
+
Resources
|
|
15
|
+
---------
|
|
16
|
+
|
|
17
|
+
* [Documentation](https://symfony.com/doc/current/components/string.html)
|
|
18
|
+
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
|
19
|
+
* [Report issues](https://github.com/symfony/symfony/issues) and
|
|
20
|
+
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
|
21
|
+
in the [main Symfony repository](https://github.com/symfony/symfony)
|
|
22
|
+
|
|
23
|
+
[1]: https://symfony.com/backers
|
|
24
|
+
[3]: https://symfony.com/sponsor
|
package/lib/del-gradle.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const glob = require('glob');
|
|
3
|
-
const path = require('upath');
|
|
4
|
-
const { del } = require('./utils/index.cjs');
|
|
5
|
-
const globStream = new glob.Glob(['**/build.gradle'], {
|
|
6
|
-
withFileTypes: false,
|
|
7
|
-
cwd: process.cwd(),
|
|
8
|
-
ignore: ['**/node_modules/**', '**/vendor/**']
|
|
9
|
-
});
|
|
10
|
-
globStream.stream().on('data', (result) => {
|
|
11
|
-
const fullPath = path.resolve(process.cwd(), result);
|
|
12
|
-
const base = path.dirname(fullPath);
|
|
13
|
-
const buildFolder = path.join(base, 'build');
|
|
14
|
-
console.log('delete build folder', buildFolder);
|
|
15
|
-
del(buildFolder);
|
|
16
|
-
});
|