diff --git a/README.md b/README.md index d8356ba..8854d2a 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,14 @@ The preferred way to install this extension is through [composer](http://getcomp Either run -``` -php composer.phar require --prefer-dist dcb9/yii2-phpredis +```bash +composer require --prefer-dist nuwber/yii2-phpredis ``` or add ```json -"dcb9/yii2-phpredis": "~1.0" +"nuwber/yii2-phpredis": "^2.0" ``` to the require section of your composer.json. @@ -37,16 +37,16 @@ To use this extension, you have to configure the Connection class in your applic return [ 'components' => [ 'redis' => [ - 'class' => \dcb9\redis\Connection::class, + 'class' => \nuwber\yii2redis\Connection::class, 'hostname' => 'localhost', 'port' => 6379, 'database' => 0, ], 'cache' => [ - 'class' => \dcb9\redis\Cache::class, + 'class' => \nuwber\yii2redis\Cache::class, ], 'session' => [ - 'class' => \dcb9\redis\Session::class, + 'class' => \nuwber\yii2redis\Session::class, ], ], ]; diff --git a/composer.json b/composer.json index 013cdda..079538e 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "dcb9/yii2-phpredis", + "name": "nuwber/yii2-phpredis", "description": "yii2 with phpredis", "minimum-stability": "stable", "license": "BSD", @@ -7,6 +7,10 @@ { "name": "Bob Chengbin", "email": "bob@phpor.me" + }, + { + "name": "Andrew", + "email": "a.kl@nuwber.com" } ], "require": { @@ -17,8 +21,8 @@ }, "autoload": { "psr-4": { - "dcb9\\redis\\": "src/", - "dcb9\\redis\\tests\\": "tests/" + "nuwber\\yii2redis\\": "src/", + "nuwber\\yii2redis\\tests\\": "tests/" } }, "require-dev": { diff --git a/src/Cache.php b/src/Cache.php index 452ff7f..d5efeea 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -1,6 +1,6 @@ [ * 'session' => [ - * 'class' => 'dcb9\redis\Session', + * 'class' => 'nuwber\yii2redis\Session', * 'redis' => [ * 'hostname' => 'localhost', * 'port' => 6379, @@ -36,7 +36,7 @@ * [ * 'components' => [ * 'session' => [ - * 'class' => 'dcb9\redis\Session', + * 'class' => 'nuwber\yii2redis\Session', * // 'redis' => 'redis' // id of the connection application component * ], * ], diff --git a/tests/CacheTest.php b/tests/CacheTest.php index ae981bd..bc95a6c 100644 --- a/tests/CacheTest.php +++ b/tests/CacheTest.php @@ -1,9 +1,9 @@ phpRedis; $phpRedis->open(); $phpRedis->flushdb();