Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 257c5f5

Browse files
authored
Merge pull request #5 from reactphp-parallel/basic-implementation
Basic implementation
2 parents c975689 + 38db42c commit 257c5f5

24 files changed

+1718
-979
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ jobs:
7676
run: (test -f vendor && true ) || composer update --ansi --no-progress --no-interaction --prefer-dist -o
7777
if: matrix.composer == 'highest'
7878
- name: Fetch Tags
79-
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
79+
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
8080
if: matrix.check == 'backward-compatibility-check'
8181
- run: make ${{ matrix.check }}

.phpcs.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

composer-require-checker.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"static", "self", "parent",
55
"array", "string", "int", "float", "bool", "iterable", "callable", "void", "object",
66
"WyriHaximus\\Constants\\Boolean\\FALSE_", "WyriHaximus\\Constants\\Boolean\\TRUE_",
7-
"WyriHaximus\\Constants\\Numeric\\ZERO"
7+
"WyriHaximus\\Constants\\Numeric\\ZERO", "WyriHaximus\\getIn", "WyriHaximus\\Constants\\Numeric\\TWO",
8+
"Composer\\Composer", "Composer\\Config", "Composer\\IO\\IOInterface", "Composer\\Script\\Event",
9+
"Composer\\EventDispatcher\\EventSubscriberInterface", "Composer\\Package\\RootPackageInterface",
10+
"Composer\\Plugin\\PluginInterface", "Composer\\Script\\ScriptEvents"
811
],
912
"php-core-extensions" : [
1013
"Core",

composer.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "react-parallel/object-proxy",
3+
"type": "composer-plugin",
34
"description": "\ud83d\udc68\u200d\ud83d\ude80\ud83d\udef0\ud83d\udc69\u200d\ud83d\ude80 Access an object in the main thread from a ext-parallel thread without copying it over",
45
"license": "MIT",
56
"authors": [
@@ -12,20 +13,40 @@
1213
"require": {
1314
"php": "^7.4",
1415
"ext-parallel": "*",
16+
"api-clients/rx": "^2.2",
17+
"composer-plugin-api": "^2 || ^1.1",
18+
"igorw/get-in": "^1.0",
19+
"nikic/php-parser": "^4.9",
1520
"psr/container": "^1.0",
1621
"psr/log": "^1.1",
17-
"react-parallel/react-parallel": "^1.0"
22+
"react-parallel/react-parallel": "^1.0",
23+
"thecodingmachine/safe": "^1.2",
24+
"wyrihaximus/constants": "^1.5",
25+
"wyrihaximus/iterator-or-array-to-array": "^1.1",
26+
"wyrihaximus/string-get-in": "^1.0"
1827
},
1928
"require-dev": {
2029
"monolog/monolog": "^2.1",
21-
"wyrihaximus/async-test-utilities": "^2.2"
30+
"wyrihaximus/async-test-utilities": "^2.3",
31+
"yuloh/container": "^1.0"
2232
},
2333
"config": {
2434
"platform": {
2535
"php": "7.4.7"
2636
},
2737
"sort-packages": true
2838
},
39+
"extra": {
40+
"class": "ReactParallel\\ObjectProxy\\Composer\\Installer",
41+
"react-parallel": {
42+
"object-proxy": {
43+
"interfaces-to-proxy": [
44+
"Psr\\Container\\ContainerInterface",
45+
"Psr\\Log\\LoggerInterface"
46+
]
47+
}
48+
}
49+
},
2950
"autoload": {
3051
"psr-4": {
3152
"ReactParallel\\ObjectProxy\\": "src/"
@@ -44,6 +65,9 @@
4465
],
4566
"post-update-cmd": [
4667
"composer normalize"
68+
],
69+
"pre-autoload-dump": [
70+
"ReactParallel\\ObjectProxy\\Composer\\Installer::generateProxies"
4771
]
4872
}
4973
}

0 commit comments

Comments
 (0)