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 7ded8d2 commit 5c05ba2
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# wpjscc/reactphp-log

reactphp is a collection of event-driven libraries for PHP designed with fibers and concurrency in mind.
`reactphp-framework/log` provides a non-blocking stream handler for `monolog/monolog`.
`reactphp-x/log` provides a non-blocking stream handler for `monolog/monolog`.

[![Release](https://img.shields.io/github/release/amphp/log.svg?style=flat-square)](https://github.com/amphp/log/releases)
![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)
Expand All @@ -12,7 +12,7 @@ reactphp is a collection of event-driven libraries for PHP designed with fibers
This package can be installed as a [Composer](https://getcomposer.org/) dependency.

```bash
composer require reactphp-framework/log -vvv
composer require reactphp-x/log -vvv
```

## Usage
Expand All @@ -21,9 +21,9 @@ composer require reactphp-framework/log -vvv
<?php

use React\Stream;
use Reactphp\Framework\Log\ConsoleFormatter;
use Reactphp\Framework\Log\StreamHandler;
use Reactphp\Framework\Log\FileWriteStream;
use ReactphpX\Log\ConsoleFormatter;
use ReactphpX\Log\StreamHandler;
use ReactphpX\Log\FileWriteStream;
use Monolog\Logger;

require dirname(__DIR__) . '/vendor/autoload.php';
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactphp-framework/log",
"homepage": "https://github.com/reactphp-framework/log",
"name": "reactphp-x/log",
"homepage": "https://github.com/reactphp-x/log",
"description": "Non-blocking logging for PHP based on reactphp, and Monolog.",
"keywords": [
"log",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"autoload": {
"psr-4": {
"Reactphp\\Framework\\Log\\": "src"
"ReactphpX\\Log\\": "src"
},
"files": [
"src/functions.php"
Expand Down
4 changes: 2 additions & 2 deletions examples/file-log.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php declare(strict_types=1);

use Reactphp\Framework\Log\FileWriteStream;
use Reactphp\Framework\Log\StreamHandler;
use ReactphpX\Log\FileWriteStream;
use ReactphpX\Log\StreamHandler;
use Monolog\Formatter\LineFormatter;
use Monolog\Logger;

Expand Down
4 changes: 2 additions & 2 deletions examples/hello-world.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php declare(strict_types=1);

use React\Stream;
use Reactphp\Framework\Log\ConsoleFormatter;
use Reactphp\Framework\Log\StreamHandler;
use ReactphpX\Log\ConsoleFormatter;
use ReactphpX\Log\StreamHandler;
use Monolog\Logger;

require dirname(__DIR__) . '/vendor/autoload.php';
Expand Down
2 changes: 1 addition & 1 deletion src/ConsoleFormatter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Reactphp\Framework\Log;
namespace ReactphpX\Log;

use Monolog\Formatter\LineFormatter;
use Monolog\LogRecord;
Expand Down
2 changes: 1 addition & 1 deletion src/FileWriteStream.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Reactphp\Framework\Log;
namespace ReactphpX\Log;

use React\Stream\WritableStreamInterface;
use React\Filesystem\Factory;
Expand Down
2 changes: 1 addition & 1 deletion src/StreamHandler.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Reactphp\Framework\Log;
namespace ReactphpX\Log;

use React\Stream\WritableStreamInterface;
use Monolog\Handler\AbstractProcessingHandler;
Expand Down
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Reactphp\Framework\Log;
namespace ReactphpX\Log;

function hasColorSupport(): bool
{
Expand Down

0 comments on commit 5c05ba2

Please sign in to comment.