Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Commit 04564da

Browse files
committed
update lib namespace, update lib package name
1 parent 9b43a58 commit 04564da

15 files changed

+38
-38
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## install
44

55
```bash
6-
composer require mylib/obj-utils
6+
composer require toolkit/obj-utils
77
```
88

99
## license

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "mylib/obj-utils",
2+
"name": "toolkit/obj-utils",
33
"type": "library",
44
"description": "some object tool library of the php",
55
"keywords": ["library","tool","php"],
6-
"homepage": "https://github.com/php-mylib/obj-utils",
6+
"homepage": "https://github.com/php-toolkit/obj-utils",
77
"license": "MIT",
88
"authors": [
99
{
@@ -17,7 +17,7 @@
1717
},
1818
"autoload": {
1919
"psr-4": {
20-
"MyLib\\ObjUtil\\" : "src/"
20+
"Toolkit\\ObjUtil\\" : "src/"
2121
}
2222
},
2323
"suggest": {

src/Exception/GetPropertyException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* Time: 23:25
77
*/
88

9-
namespace MyLib\ObjUtil\Exception;
9+
namespace Toolkit\ObjUtil\Exception;
1010

1111
/**
1212
* Class GetPropertyException
13-
* @package MyLib\ObjUtil\Exception
13+
* @package Toolkit\ObjUtil\Exception
1414
*/
1515
class GetPropertyException extends \RuntimeException
1616
{

src/Exception/PropertyException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* Time: 23:25
77
*/
88

9-
namespace MyLib\ObjUtil\Exception;
9+
namespace Toolkit\ObjUtil\Exception;
1010

1111
/**
1212
* Class PropertyException
13-
* @package MyLib\ObjUtil\Exception
13+
* @package Toolkit\ObjUtil\Exception
1414
*/
1515
class PropertyException extends \RuntimeException
1616
{

src/Exception/SetPropertyException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* Time: 23:25
77
*/
88

9-
namespace MyLib\ObjUtil\Exception;
9+
namespace Toolkit\ObjUtil\Exception;
1010

1111
/**
1212
* Class SetPropertyException
13-
* @package MyLib\ObjUtil\Exception
13+
* @package Toolkit\ObjUtil\Exception
1414
*/
1515
class SetPropertyException extends \RuntimeException
1616
{

src/Obj.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
* Time: 下午9:39
77
*/
88

9-
namespace MyLib\ObjUtil;
9+
namespace Toolkit\ObjUtil;
1010

11-
use MyLib\ObjUtil\Traits\ObjectPoolTrait;
11+
use Toolkit\ObjUtil\Traits\ObjectPoolTrait;
1212

1313
/**
1414
* Class Obj
1515
* alias of the ObjectHelper
16-
* @package MyLib\ObjUtil
16+
* @package Toolkit\ObjUtil
1717
*/
1818
class Obj extends ObjectHelper
1919
{

src/ObjectHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
* Uesd: 主要功能是 hi
88
*/
99

10-
namespace MyLib\ObjUtil;
10+
namespace Toolkit\ObjUtil;
1111

1212
use Inhere\Exceptions\DependencyResolutionException;
1313

1414
/**
1515
* Class ObjectHelper
16-
* @package MyLib\ObjUtil
16+
* @package Toolkit\ObjUtil
1717
*/
1818
class ObjectHelper
1919
{

src/ObjectStorage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* Time: 14:56
77
*/
88

9-
namespace MyLib\ObjUtil;
9+
namespace Toolkit\ObjUtil;
1010

1111
/**
1212
* Class ObjectStorage
1313
* - 允许使用非对象作为key,会自动使用 \stdClass 转成对象
14-
* @package MyLib\ObjUtil
14+
* @package Toolkit\ObjUtil
1515
*/
1616
class ObjectStorage extends \SplObjectStorage
1717
{
@@ -67,4 +67,4 @@ public function has($key): bool
6767
{
6868
return $this->contains($key);
6969
}
70-
}
70+
}

src/Traits/ArrayAccessByGetterSetterTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* Time: 22:03
77
*/
88

9-
namespace MyLib\ObjUtil\Traits;
9+
namespace Toolkit\ObjUtil\Traits;
1010

1111
/**
1212
* Class TraitArrayAccess
13-
* @package MyLib\ObjUtil\Traits
13+
* @package Toolkit\ObjUtil\Traits
1414
* ```
1515
* class A implements \ArrayAccess
1616
* {

src/Traits/ArrayAccessByPropertyTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* Time: 22:03
77
*/
88

9-
namespace MyLib\ObjUtil\Traits;
9+
namespace Toolkit\ObjUtil\Traits;
1010

1111
/**
1212
* Class TraitArrayAccess
13-
* @package MyLib\ObjUtil\Traits
13+
* @package Toolkit\ObjUtil\Traits
1414
* ```
1515
* class A implements \ArrayAccess
1616
* {

0 commit comments

Comments
 (0)