diff --git a/composer.json b/composer.json index 208eba33..9d235531 100644 --- a/composer.json +++ b/composer.json @@ -11,10 +11,11 @@ ], "require": { "php": ">=5.4.0", + "evenement/evenement": "^3.0 || ^2.0", "react/event-loop": "^0.4", "react/promise": "~2.2", - "react/stream": "^0.4", - "evenement/evenement": "~2.0", + "react/promise-stream": "^1.1", + "react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4", "wyrihaximus/react-child-process-pool": "^1.3" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 53150a9e..42335dcd 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,48 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "c528845419488f6c171310278b549ad9", + "content-hash": "68b67172371217fc2a6dc42267f5d4c1", "packages": [ + { + "name": "cakephp/utility", + "version": "3.4.7", + "source": { + "type": "git", + "url": "https://github.com/cakephp/utility.git", + "reference": "f194ce6c83f54d96ce8ae0020b5f58fa850a8ef4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/cakephp/utility/zipball/f194ce6c83f54d96ce8ae0020b5f58fa850a8ef4", + "reference": "f194ce6c83f54d96ce8ae0020b5f58fa850a8ef4", + "shasum": "" + }, + "suggest": { + "ext-intl": "To use Text::transliterate() or Text::slug()", + "lib-ICU": "To use Text::transliterate() or Text::slug()" + }, + "type": "library", + "autoload": { + "psr-4": { + "Cake\\Utility\\": "." + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://cakephp.org" + } + ], + "description": "CakePHP Utility classes such as Inflector, String, Hash, and Security", + "time": "2017-04-18T04:05:20+00:00" + }, { "name": "doctrine/inflector", "version": "v1.1.0", @@ -73,23 +113,80 @@ ], "time": "2015-11-06T14:35:42+00:00" }, + { + "name": "doctrine/instantiator", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "shasum": "" + }, + "require": { + "php": ">=5.3,<8.0-DEV" + }, + "require-dev": { + "athletic/athletic": "~0.1.8", + "ext-pdo": "*", + "ext-phar": "*", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "http://ocramius.github.com/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://github.com/doctrine/instantiator", + "keywords": [ + "constructor", + "instantiate" + ], + "time": "2015-06-14T21:17:01+00:00" + }, { "name": "evenement/evenement", - "version": "v2.0.0", + "version": "v2.1.0", "source": { "type": "git", "url": "https://github.com/igorw/evenement.git", - "reference": "f6e843799fd4f4184d54d8fc7b5b3551c9fa803e" + "reference": "6ba9a777870ab49f417e703229d53931ed40fd7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/igorw/evenement/zipball/f6e843799fd4f4184d54d8fc7b5b3551c9fa803e", - "reference": "f6e843799fd4f4184d54d8fc7b5b3551c9fa803e", + "url": "https://api.github.com/repos/igorw/evenement/zipball/6ba9a777870ab49f417e703229d53931ed40fd7a", + "reference": "6ba9a777870ab49f417e703229d53931ed40fd7a", "shasum": "" }, "require": { "php": ">=5.4.0" }, + "require-dev": { + "phpunit/phpunit": "^6.0||^5.7||^4.8.35" + }, "type": "library", "extra": { "branch-alias": { @@ -108,8 +205,7 @@ "authors": [ { "name": "Igor Wiedler", - "email": "igor@wiedler.ch", - "homepage": "http://wiedler.ch/igor/" + "email": "igor@wiedler.ch" } ], "description": "Événement is a very simple event dispatching library for PHP", @@ -117,7 +213,7 @@ "event-dispatcher", "event-emitter" ], - "time": "2012-11-02T14:49:47+00:00" + "time": "2017-07-17T17:39:19+00:00" }, { "name": "indigophp/hash-compat", @@ -170,28 +266,117 @@ ], "time": "2015-08-22T07:03:35+00:00" }, + { + "name": "paragonie/random_compat", + "version": "v2.0.11", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/5da4d3c796c275c55f057af5a643ae297d96b4d8", + "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "autoload": { + "files": [ + "lib/random.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "pseudorandom", + "random" + ], + "time": "2017-09-27T21:40:39+00:00" + }, + { + "name": "react/cache", + "version": "v0.4.2", + "source": { + "type": "git", + "url": "https://github.com/reactphp/cache.git", + "reference": "75494f26b4ef089db9bf8c90b63c296246e099e8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/cache/zipball/75494f26b4ef089db9bf8c90b63c296246e099e8", + "reference": "75494f26b4ef089db9bf8c90b63c296246e099e8", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "react/promise": "~2.0|~1.1" + }, + "require-dev": { + "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Async, Promise-based cache interface for ReactPHP", + "keywords": [ + "cache", + "caching", + "promise", + "reactphp" + ], + "time": "2017-12-20T16:47:13+00:00" + }, { "name": "react/child-process", - "version": "v0.4.1", + "version": "v0.5.2", "source": { "type": "git", "url": "https://github.com/reactphp/child-process.git", - "reference": "3ab4f83c6f6c5862f7ca28d999a92d327472a671" + "reference": "aae49d7f1340bafb695b9af3ce4421ea41a39620" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/child-process/zipball/3ab4f83c6f6c5862f7ca28d999a92d327472a671", - "reference": "3ab4f83c6f6c5862f7ca28d999a92d327472a671", + "url": "https://api.github.com/repos/reactphp/child-process/zipball/aae49d7f1340bafb695b9af3ce4421ea41a39620", + "reference": "aae49d7f1340bafb695b9af3ce4421ea41a39620", "shasum": "" }, "require": { - "evenement/evenement": "~2.0", - "php": ">=5.4.0", - "react/event-loop": "0.4.*", - "react/stream": "~0.4.2" + "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "php": ">=5.3.0", + "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", + "react/stream": "^1.0 || ^0.7.6" }, "require-dev": { - "sebastian/environment": "~1.0" + "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35", + "sebastian/environment": "^3.0 || ^2.0 || ^1.0" }, "type": "library", "autoload": { @@ -203,40 +388,85 @@ "license": [ "MIT" ], - "description": "Library for executing child processes.", + "description": "Event-driven library for executing child processes with ReactPHP.", "keywords": [ - "process" + "event-driven", + "process", + "reactphp" ], - "time": "2016-08-01T18:09:48+00:00" + "time": "2018-01-18T14:53:06+00:00" + }, + { + "name": "react/dns", + "version": "v0.4.13", + "source": { + "type": "git", + "url": "https://github.com/reactphp/dns.git", + "reference": "7d1e08c300fd7de600810883386ee5e2a64898f4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/dns/zipball/7d1e08c300fd7de600810883386ee5e2a64898f4", + "reference": "7d1e08c300fd7de600810883386ee5e2a64898f4", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "react/cache": "~0.4.0|~0.3.0", + "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", + "react/promise": "^2.1 || ^1.2.1", + "react/promise-timer": "^1.2", + "react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.5" + }, + "require-dev": { + "clue/block-react": "^1.2", + "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Dns\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Async DNS resolver for ReactPHP", + "keywords": [ + "async", + "dns", + "dns-resolver", + "reactphp" + ], + "time": "2018-02-27T12:51:22+00:00" }, { "name": "react/event-loop", - "version": "v0.4.2", + "version": "v0.4.3", "source": { "type": "git", "url": "https://github.com/reactphp/event-loop.git", - "reference": "164799f73175e1c80bba92a220ea35df6ca371dd" + "reference": "8bde03488ee897dc6bb3d91e4e17c353f9c5252f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/event-loop/zipball/164799f73175e1c80bba92a220ea35df6ca371dd", - "reference": "164799f73175e1c80bba92a220ea35df6ca371dd", + "url": "https://api.github.com/repos/reactphp/event-loop/zipball/8bde03488ee897dc6bb3d91e4e17c353f9c5252f", + "reference": "8bde03488ee897dc6bb3d91e4e17c353f9c5252f", "shasum": "" }, "require": { "php": ">=5.4.0" }, + "require-dev": { + "phpunit/phpunit": "~4.8" + }, "suggest": { "ext-event": "~1.0", "ext-libev": "*", "ext-libevent": ">=0.1.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.5-dev" - } - }, "autoload": { "psr-4": { "React\\EventLoop\\": "src" @@ -251,25 +481,28 @@ "asynchronous", "event-loop" ], - "time": "2016-03-08T02:09:32+00:00" + "time": "2017-04-27T10:56:23+00:00" }, { "name": "react/promise", - "version": "v2.5.0", + "version": "v2.5.1", "source": { "type": "git", "url": "https://github.com/reactphp/promise.git", - "reference": "2760f3898b7e931aa71153852dcd48a75c9b95db" + "reference": "62785ae604c8d69725d693eb370e1d67e94c4053" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/2760f3898b7e931aa71153852dcd48a75c9b95db", - "reference": "2760f3898b7e931aa71153852dcd48a75c9b95db", + "url": "https://api.github.com/repos/reactphp/promise/zipball/62785ae604c8d69725d693eb370e1d67e94c4053", + "reference": "62785ae604c8d69725d693eb370e1d67e94c4053", "shasum": "" }, "require": { "php": ">=5.4.0" }, + "require-dev": { + "phpunit/phpunit": "~4.8" + }, "type": "library", "autoload": { "psr-4": { @@ -294,34 +527,186 @@ "promise", "promises" ], - "time": "2016-12-22T14:09:01+00:00" + "time": "2017-03-25T12:08:31+00:00" + }, + { + "name": "react/promise-stream", + "version": "v1.1.1", + "source": { + "type": "git", + "url": "https://github.com/reactphp/promise-stream.git", + "reference": "00e269d611e9c9a29356aef64c07f7e513e73dc9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/promise-stream/zipball/00e269d611e9c9a29356aef64c07f7e513e73dc9", + "reference": "00e269d611e9c9a29356aef64c07f7e513e73dc9", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "react/promise": "^2.1 || ^1.2", + "react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4 || ^0.3" + }, + "require-dev": { + "clue/block-react": "^1.0", + "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35", + "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3", + "react/promise-timer": "^1.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Promise\\Stream\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@lueck.tv" + } + ], + "description": "The missing link between Promise-land and Stream-land for ReactPHP", + "homepage": "https://github.com/reactphp/promise-stream", + "keywords": [ + "Buffer", + "async", + "promise", + "reactphp", + "stream", + "unwrap" + ], + "time": "2017-12-22T12:02:05+00:00" + }, + { + "name": "react/promise-timer", + "version": "v1.2.1", + "source": { + "type": "git", + "url": "https://github.com/reactphp/promise-timer.git", + "reference": "9b4cd9cbe7457e0d87fe8aa7ccceab8a2c830fbd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/9b4cd9cbe7457e0d87fe8aa7ccceab8a2c830fbd", + "reference": "9b4cd9cbe7457e0d87fe8aa7ccceab8a2c830fbd", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", + "react/promise": "~2.1|~1.2" + }, + "require-dev": { + "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Promise\\Timer\\": "src/" + }, + "files": [ + "src/functions.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@lueck.tv" + } + ], + "description": "A trivial implementation of timeouts for Promises, built on top of ReactPHP.", + "homepage": "https://github.com/react/promise-timer", + "keywords": [ + "async", + "event-loop", + "promise", + "reactphp", + "timeout", + "timer" + ], + "time": "2017-12-22T15:41:41+00:00" + }, + { + "name": "react/socket", + "version": "v0.8.10", + "source": { + "type": "git", + "url": "https://github.com/reactphp/socket.git", + "reference": "d3957313c92b539537fccc80170c05a27ec25796" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/socket/zipball/d3957313c92b539537fccc80170c05a27ec25796", + "reference": "d3957313c92b539537fccc80170c05a27ec25796", + "shasum": "" + }, + "require": { + "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "php": ">=5.3.0", + "react/dns": "^0.4.13", + "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", + "react/promise": "^2.1 || ^1.2", + "react/promise-timer": "~1.0", + "react/stream": "^1.0 || ^0.7.1" + }, + "require-dev": { + "clue/block-react": "^1.2", + "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Socket\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP", + "keywords": [ + "Connection", + "Socket", + "async", + "reactphp", + "stream" + ], + "time": "2018-02-28T09:32:38+00:00" }, { "name": "react/stream", - "version": "v0.4.6", + "version": "v0.7.7", "source": { "type": "git", "url": "https://github.com/reactphp/stream.git", - "reference": "44dc7f51ea48624110136b535b9ba44fd7d0c1ee" + "reference": "10100896018fd847a257cd81143b8e1b7be08e40" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/stream/zipball/44dc7f51ea48624110136b535b9ba44fd7d0c1ee", - "reference": "44dc7f51ea48624110136b535b9ba44fd7d0c1ee", + "url": "https://api.github.com/repos/reactphp/stream/zipball/10100896018fd847a257cd81143b8e1b7be08e40", + "reference": "10100896018fd847a257cd81143b8e1b7be08e40", "shasum": "" }, "require": { - "evenement/evenement": "^2.0|^1.0", - "php": ">=5.3.8" + "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "php": ">=5.3.8", + "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5" }, "require-dev": { "clue/stream-filter": "~1.2", - "react/event-loop": "^0.4|^0.3", - "react/promise": "^2.0|^1.0" - }, - "suggest": { - "react/event-loop": "^0.4", - "react/promise": "^2.0" + "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" }, "type": "library", "autoload": { @@ -333,25 +718,31 @@ "license": [ "MIT" ], - "description": "Basic readable and writable stream interfaces that support piping.", + "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP", "keywords": [ + "event-driven", + "io", + "non-blocking", "pipe", - "stream" + "reactphp", + "readable", + "stream", + "writable" ], - "time": "2017-01-25T14:44:14+00:00" + "time": "2018-01-19T15:04:38+00:00" }, { "name": "tivie/php-os-detector", - "version": "1.0.0", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/tivie/php-os-detector.git", - "reference": "58226a9068323ee0d104f615c99fb97adeb136ae" + "reference": "9461dcd85c00e03842264f2fc8ccdc8d46867321" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tivie/php-os-detector/zipball/58226a9068323ee0d104f615c99fb97adeb136ae", - "reference": "58226a9068323ee0d104f615c99fb97adeb136ae", + "url": "https://api.github.com/repos/tivie/php-os-detector/zipball/9461dcd85c00e03842264f2fc8ccdc8d46867321", + "reference": "9461dcd85c00e03842264f2fc8ccdc8d46867321", "shasum": "" }, "require": { @@ -386,25 +777,25 @@ "os", "os detection" ], - "time": "2014-12-19T01:17:49+00:00" + "time": "2017-10-21T03:33:59+00:00" }, { "name": "wyrihaximus/cpu-core-detector", - "version": "1.0.0", + "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/WyriHaximus/php-cpu-core-detector.git", - "reference": "d76b9a2691698e888a457b39f2dea3c0e9c1cbdb" + "reference": "459dbf380172f06de6bf1aaecb9b1a003f7937b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/php-cpu-core-detector/zipball/d76b9a2691698e888a457b39f2dea3c0e9c1cbdb", - "reference": "d76b9a2691698e888a457b39f2dea3c0e9c1cbdb", + "url": "https://api.github.com/repos/WyriHaximus/php-cpu-core-detector/zipball/459dbf380172f06de6bf1aaecb9b1a003f7937b1", + "reference": "459dbf380172f06de6bf1aaecb9b1a003f7937b1", "shasum": "" }, "require": { "php": "^5.4||^7.0", - "react/child-process": "^0.4.0", + "react/child-process": "^0.5 || ^0.4", "tivie/php-os-detector": "^1.0", "wyrihaximus/react-child-process-promise": "^2.0", "wyrihaximus/ticking-promise": "^1.5" @@ -434,35 +825,88 @@ "email": "ceesjank@gmail.com" } ], - "time": "2016-03-12T10:14:31+00:00" + "time": "2018-02-24T17:44:46+00:00" + }, + { + "name": "wyrihaximus/json-throwable", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/WyriHaximus/php-json-throwable.git", + "reference": "fc3588681dcccc3f1f2f94c8eca71687f0899340" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/WyriHaximus/php-json-throwable/zipball/fc3588681dcccc3f1f2f94c8eca71687f0899340", + "reference": "fc3588681dcccc3f1f2f94c8eca71687f0899340", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.5", + "php": "^7.0 || ^5.4" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.2", + "jakub-onderka/php-console-highlighter": "^0.3.2", + "jakub-onderka/php-parallel-lint": "^0.9.2", + "phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "WyriHaximus\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Cees-Jan Kiewiet", + "email": "ceesjank@gmail.com" + } + ], + "description": "JSON encode and decode throwables and exceptions", + "time": "2018-03-12T21:39:58+00:00" }, { "name": "wyrihaximus/react-child-process-messenger", - "version": "2.7.1", + "version": "2.8.1", "source": { "type": "git", "url": "https://github.com/WyriHaximus/reactphp-child-process-messenger.git", - "reference": "8b4e8c611b51e2949f46630495e521f9ae293567" + "reference": "afde926a729868f5d6f64f378836123c3b247dea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/reactphp-child-process-messenger/zipball/8b4e8c611b51e2949f46630495e521f9ae293567", - "reference": "8b4e8c611b51e2949f46630495e521f9ae293567", + "url": "https://api.github.com/repos/WyriHaximus/reactphp-child-process-messenger/zipball/afde926a729868f5d6f64f378836123c3b247dea", + "reference": "afde926a729868f5d6f64f378836123c3b247dea", "shasum": "" }, "require": { + "cakephp/utility": "^3.4", "doctrine/inflector": "^1.0", + "evenement/evenement": "^3.0 || ^2.0 || ^1.0", "indigophp/hash-compat": "^1.0", + "paragonie/random_compat": "^2.0", "php": "^5.4||^7.0", - "react/child-process": "^0.4", - "tivie/php-os-detector": "^1.0", + "react/child-process": "^0.5 || ^0.4", + "react/promise": "^2.2", + "react/promise-stream": "^1.1", + "react/socket": "^0.8.1", + "wyrihaximus/json-throwable": "^2.0 || ^1.1.1", "wyrihaximus/ticking-promise": "^1.4" }, "require-dev": { - "phake/phake": "^1.0.6", - "phpunit/phpunit": "^4.0||^5.0", - "squizlabs/php_codesniffer": "^1.5", - "vectorface/dunit": "^2.0" + "clue/block-react": "^1.2", + "friendsofphp/php-cs-fixer": "^2.2", + "jakub-onderka/php-console-highlighter": "^0.3.2", + "jakub-onderka/php-parallel-lint": "^0.9.2", + "phpunit/phpunit": "^4.8.35||^5.0||^6.0" }, "type": "library", "autoload": { @@ -482,24 +926,24 @@ } ], "description": "Messenger decorator for react/child-process", - "time": "2016-03-19T22:07:54+00:00" + "time": "2018-03-23T21:26:12+00:00" }, { "name": "wyrihaximus/react-child-process-pool", - "version": "1.4.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/WyriHaximus/reactphp-child-process-pool.git", - "reference": "285177394cb557620f11c383db61be2a6429a313" + "reference": "85e07c48e007e28beec1a47e63686db219d44e87" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/reactphp-child-process-pool/zipball/285177394cb557620f11c383db61be2a6429a313", - "reference": "285177394cb557620f11c383db61be2a6429a313", + "url": "https://api.github.com/repos/WyriHaximus/reactphp-child-process-pool/zipball/85e07c48e007e28beec1a47e63686db219d44e87", + "reference": "85e07c48e007e28beec1a47e63686db219d44e87", "shasum": "" }, "require": { - "evenement/evenement": "^2.0", + "evenement/evenement": "^3.0 || ^2.0", "php": "^5.4||^7.0", "wyrihaximus/cpu-core-detector": "^1.0.0", "wyrihaximus/react-child-process-messenger": "^2.7.1", @@ -508,10 +952,13 @@ "require-dev": { "clue/block-react": "^1.1", "phake/phake": "^2.2.1", - "phpunit/phpunit": "^4.0||^5.0", + "phpunit/phpunit": "^4.8.35||^5.0", "squizlabs/php_codesniffer": "^1.5.6", "vectorface/dunit": "~2.0" }, + "suggest": { + "wyrihaximus/react-child-process-pool-redis-queue": "Redis RPC queue" + }, "type": "library", "autoload": { "psr-4": { @@ -531,25 +978,25 @@ "email": "ceesjank@gmail.com" } ], - "time": "2016-04-10T08:07:48+00:00" + "time": "2018-02-28T20:22:20+00:00" }, { "name": "wyrihaximus/react-child-process-promise", - "version": "2.0.0", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/WyriHaximus/reactphp-child-process-promise.git", - "reference": "9adf998f6e864f6126a286e97193fedb768f7938" + "reference": "9b6f1bace7af43afc79fa85b91c793cdb3ff199b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/reactphp-child-process-promise/zipball/9adf998f6e864f6126a286e97193fedb768f7938", - "reference": "9adf998f6e864f6126a286e97193fedb768f7938", + "url": "https://api.github.com/repos/WyriHaximus/reactphp-child-process-promise/zipball/9b6f1bace7af43afc79fa85b91c793cdb3ff199b", + "reference": "9b6f1bace7af43afc79fa85b91c793cdb3ff199b", "shasum": "" }, "require": { "php": "^5.4||^7.0", - "react/child-process": "^0.4.0", + "react/child-process": "^0.5 || ^0.4", "react/promise": "^2.2", "wyrihaximus/ticking-promise": "^1.5.2" }, @@ -580,24 +1027,25 @@ } ], "description": "Wrapping ticks into a promise", - "time": "2016-01-08T23:35:09+00:00" + "time": "2017-10-17T11:37:15+00:00" }, { "name": "wyrihaximus/ticking-promise", - "version": "1.6.1", + "version": "1.6.2", "source": { "type": "git", "url": "https://github.com/WyriHaximus/TickingPromise.git", - "reference": "8d26b1458e32c367ba6fb8ad5042046279acdb12" + "reference": "6b9f9abc74bb52ba3a479f8d3b8889579cd2cd6f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/TickingPromise/zipball/8d26b1458e32c367ba6fb8ad5042046279acdb12", - "reference": "8d26b1458e32c367ba6fb8ad5042046279acdb12", + "url": "https://api.github.com/repos/WyriHaximus/TickingPromise/zipball/6b9f9abc74bb52ba3a479f8d3b8889579cd2cd6f", + "reference": "6b9f9abc74bb52ba3a479f8d3b8889579cd2cd6f", "shasum": "" }, "require": { - "react/event-loop": "^0.4", + "php": "^7.0 || ^5.4", + "react/event-loop": "^1.0 || ^0.5 || ^0.4", "react/promise": "~2.1" }, "require-dev": { @@ -626,30 +1074,33 @@ } ], "description": "Wrapping ticks into a promise", - "time": "2016-03-05T20:23:05+00:00" + "time": "2017-10-31T21:46:39+00:00" } ], "packages-dev": [ { "name": "clue/block-react", - "version": "v1.1.0", + "version": "v1.2.0", "source": { "type": "git", "url": "https://github.com/clue/php-block-react.git", - "reference": "ed70f8d497dd265e30bc7dd19cf86b2e149b1ecf" + "reference": "966c255580ec7a0259338798ddb89f77e121fe9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/clue/php-block-react/zipball/ed70f8d497dd265e30bc7dd19cf86b2e149b1ecf", - "reference": "ed70f8d497dd265e30bc7dd19cf86b2e149b1ecf", + "url": "https://api.github.com/repos/clue/php-block-react/zipball/966c255580ec7a0259338798ddb89f77e121fe9e", + "reference": "966c255580ec7a0259338798ddb89f77e121fe9e", "shasum": "" }, "require": { "php": ">=5.3", - "react/event-loop": "0.4.*|0.3.*", + "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", "react/promise": "~2.1|~1.2", "react/promise-timer": "~1.0" }, + "require-dev": { + "phpunit/phpunit": "^5.0 || ^4.8" + }, "type": "library", "autoload": { "files": [ @@ -676,74 +1127,20 @@ "reactphp", "synchronous" ], - "time": "2016-03-09T15:10:22+00:00" - }, - { - "name": "doctrine/instantiator", - "version": "1.0.5", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", - "shasum": "" - }, - "require": { - "php": ">=5.3,<8.0-DEV" - }, - "require-dev": { - "athletic/athletic": "~0.1.8", - "ext-pdo": "*", - "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://github.com/doctrine/instantiator", - "keywords": [ - "constructor", - "instantiate" - ], - "time": "2015-06-14T21:17:01+00:00" + "time": "2017-08-03T13:14:15+00:00" }, { "name": "phpdocumentor/reflection-docblock", - "version": "2.0.4", + "version": "2.0.5", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8" + "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8", - "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/e6a969a640b00d8daa3c66518b0405fb41ae0c4b", + "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b", "shasum": "" }, "require": { @@ -779,37 +1176,37 @@ "email": "mike.vanriel@naenius.com" } ], - "time": "2015-02-03T12:10:50+00:00" + "time": "2016-01-25T08:17:30+00:00" }, { "name": "phpspec/prophecy", - "version": "v1.6.2", + "version": "1.7.5", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "6c52c2722f8460122f96f86346600e1077ce22cb" + "reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/6c52c2722f8460122f96f86346600e1077ce22cb", - "reference": "6c52c2722f8460122f96f86346600e1077ce22cb", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/dfd6be44111a7c41c2e884a336cc4f461b3b2401", + "reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", - "sebastian/comparator": "^1.1", - "sebastian/recursion-context": "^1.0|^2.0" + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", + "sebastian/comparator": "^1.1|^2.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, "require-dev": { - "phpspec/phpspec": "^2.0", - "phpunit/phpunit": "^4.8 || ^5.6.5" + "phpspec/phpspec": "^2.5|^3.2", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-master": "1.7.x-dev" } }, "autoload": { @@ -842,7 +1239,7 @@ "spy", "stub" ], - "time": "2016-11-21T14:58:47+00:00" + "time": "2018-02-19T10:16:54+00:00" }, { "name": "phpunit/php-code-coverage", @@ -908,16 +1305,16 @@ }, { "name": "phpunit/php-file-iterator", - "version": "1.4.2", + "version": "1.4.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5" + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5", - "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", "shasum": "" }, "require": { @@ -951,7 +1348,7 @@ "filesystem", "iterator" ], - "time": "2016-10-03T07:40:28+00:00" + "time": "2017-11-27T13:52:08+00:00" }, { "name": "phpunit/php-text-template", @@ -1045,16 +1442,16 @@ }, { "name": "phpunit/php-token-stream", - "version": "1.4.10", + "version": "1.4.12", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "284fb0679dd25fb5ffb56dad92c72860c0a22f1b" + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/284fb0679dd25fb5ffb56dad92c72860c0a22f1b", - "reference": "284fb0679dd25fb5ffb56dad92c72860c0a22f1b", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16", + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16", "shasum": "" }, "require": { @@ -1090,20 +1487,20 @@ "keywords": [ "tokenizer" ], - "time": "2017-02-23T06:14:45+00:00" + "time": "2017-12-04T08:55:13+00:00" }, { "name": "phpunit/phpunit", - "version": "4.8.35", + "version": "4.8.36", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "791b1a67c25af50e230f841ee7a9c6eba507dc87" + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/791b1a67c25af50e230f841ee7a9c6eba507dc87", - "reference": "791b1a67c25af50e230f841ee7a9c6eba507dc87", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517", + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517", "shasum": "" }, "require": { @@ -1162,7 +1559,7 @@ "testing", "xunit" ], - "time": "2017-02-06T05:18:07+00:00" + "time": "2017-06-21T08:07:12+00:00" }, { "name": "phpunit/phpunit-mock-objects", @@ -1220,56 +1617,6 @@ ], "time": "2015-10-02T06:51:40+00:00" }, - { - "name": "react/promise-timer", - "version": "v1.1.1", - "source": { - "type": "git", - "url": "https://github.com/reactphp/promise-timer.git", - "reference": "ddedc67bfd7f579fc83e66ff67e3564b179297dd" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/ddedc67bfd7f579fc83e66ff67e3564b179297dd", - "reference": "ddedc67bfd7f579fc83e66ff67e3564b179297dd", - "shasum": "" - }, - "require": { - "php": ">=5.3", - "react/event-loop": "~0.4.0|~0.3.0", - "react/promise": "~2.1|~1.2" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Promise\\Timer\\": "src/" - }, - "files": [ - "src/functions.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@lueck.tv" - } - ], - "description": "Trivial timeout implementation for Promises", - "homepage": "https://github.com/react/promise-timer", - "keywords": [ - "async", - "event-loop", - "promise", - "reactphp", - "timeout", - "timer" - ], - "time": "2016-12-27T08:12:19+00:00" - }, { "name": "sebastian/comparator", "version": "1.2.4", @@ -1336,23 +1683,23 @@ }, { "name": "sebastian/diff", - "version": "1.4.1", + "version": "1.4.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e" + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e", - "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^5.3.3 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.8" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" }, "type": "library", "extra": { @@ -1384,7 +1731,7 @@ "keywords": [ "diff" ], - "time": "2015-12-08T07:14:41+00:00" + "time": "2017-05-22T07:24:03+00:00" }, { "name": "sebastian/environment", @@ -1556,16 +1903,16 @@ }, { "name": "sebastian/recursion-context", - "version": "1.0.2", + "version": "1.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "913401df809e99e4f47b27cdd781f4a258d58791" + "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/913401df809e99e4f47b27cdd781f4a258d58791", - "reference": "913401df809e99e4f47b27cdd781f4a258d58791", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7", + "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7", "shasum": "" }, "require": { @@ -1605,7 +1952,7 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2015-11-11T19:50:13+00:00" + "time": "2016-10-03T07:41:43+00:00" }, { "name": "sebastian/version", @@ -1644,16 +1991,16 @@ }, { "name": "symfony/yaml", - "version": "v2.8.17", + "version": "v2.8.36", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "322a8c2dfbca15ad6b1b27e182899f98ec0e0153" + "reference": "be720fcfae4614df204190d57795351059946a77" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/322a8c2dfbca15ad6b1b27e182899f98ec0e0153", - "reference": "322a8c2dfbca15ad6b1b27e182899f98ec0e0153", + "url": "https://api.github.com/repos/symfony/yaml/zipball/be720fcfae4614df204190d57795351059946a77", + "reference": "be720fcfae4614df204190d57795351059946a77", "shasum": "" }, "require": { @@ -1689,7 +2036,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2017-01-21T16:40:50+00:00" + "time": "2018-01-03T07:36:31+00:00" } ], "aliases": [], diff --git a/src/Node/File.php b/src/Node/File.php index c67c1bad..f99c0eab 100644 --- a/src/Node/File.php +++ b/src/Node/File.php @@ -8,11 +8,11 @@ use React\Filesystem\ObjectStreamSink; use React\Filesystem\Stream\GenericStreamInterface; use React\Promise\Deferred; +use React\Promise\Stream; use React\Stream\ReadableStreamInterface; use React\Stream\WritableStreamInterface; use React\Promise\FulfilledPromise; use React\Promise\RejectedPromise; -use React\Stream\BufferedSink; class File implements FileInterface { @@ -149,7 +149,7 @@ public function close() public function getContents() { return $this->open('r')->then(function ($stream) { - return BufferedSink::createPromise($stream)->always(function () { + return Stream\buffer($stream)->always(function () { $this->close(); }); });