Skip to content

Commit

Permalink
modify namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjscc committed Aug 10, 2024
1 parent 99b7498 commit fc823a6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# reactphp-framework-asyncify
# reactphp-x-asyncify

## install

```
composer require reactphp-framework/asyncify -vvv
composer require reactphp-x/asyncify -vvv
```

## Usage
Expand All @@ -15,7 +15,7 @@ promise

require __DIR__ . '/../vendor/autoload.php';

use Reactphp\Framework\Asyncify\Asyncify;
use ReactphpX\Asyncify\Asyncify;
use React\EventLoop\Loop;
use React\Promise\Deferred;

Expand Down Expand Up @@ -69,7 +69,7 @@ stream

require __DIR__ . '/../vendor/autoload.php';

use Reactphp\Framework\Asyncify\Asyncify;
use ReactphpX\Asyncify\Asyncify;
use React\EventLoop\Loop;

$word = 'world';
Expand Down Expand Up @@ -101,7 +101,7 @@ Loop::addTimer(1, function () {

require __DIR__ . '/../vendor/autoload.php';

use Reactphp\Framework\Asyncify\Asyncify;
use ReactphpX\Asyncify\Asyncify;
use React\Stream\ThroughStream;
use React\EventLoop\Loop;

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "reactphp-framework/asyncify",
"name": "reactphp-x/asyncify",
"license": "MIT",
"autoload": {
"psr-4": {
"Reactphp\\Framework\\Asyncify\\": "src/"
"ReactphpX\\Asyncify\\": "src/"
}
},
"authors": [
Expand All @@ -13,6 +13,6 @@
}
],
"require": {
"reactphp-framework/process-manager": "^0.0.5"
"reactphp-x/process-manager": "^0.0.5"
}
}
2 changes: 1 addition & 1 deletion examples/01.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require __DIR__ . '/../vendor/autoload.php';

use Reactphp\Framework\Asyncify\Asyncify;
use ReactphpX\Asyncify\Asyncify;
use React\EventLoop\Loop;
use React\Promise\Deferred;

Expand Down
2 changes: 1 addition & 1 deletion examples/02.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require __DIR__ . '/../vendor/autoload.php';

use Reactphp\Framework\Asyncify\Asyncify;
use ReactphpX\Asyncify\Asyncify;
use React\EventLoop\Loop;

$word = 'world';
Expand Down
2 changes: 1 addition & 1 deletion examples/03.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require __DIR__ . '/../vendor/autoload.php';

use Reactphp\Framework\Asyncify\Asyncify;
use ReactphpX\Asyncify\Asyncify;
use React\EventLoop\Loop;

$stream = Asyncify::call(function ($stream){
Expand Down
4 changes: 2 additions & 2 deletions src/Asyncify.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Reactphp\Framework\Asyncify;
namespace ReactphpX\Asyncify;

use Reactphp\Framework\ProcessManager\ProcessManager;
use ReactphpX\ProcessManager\ProcessManager;
use React\Promise\Deferred;

class Asyncify
Expand Down

0 comments on commit fc823a6

Please sign in to comment.