Skip to content

Commit 340346f

Browse files
committed
change namespace to upper char
1 parent 758c96d commit 340346f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+336
-270
lines changed

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818
},
1919
"autoload": {
2020
"psr-4": {
21-
"inhere\\libraryPlus\\" : "libs/"
21+
"Inhere\\LibraryPlus\\" : "libs/"
2222
}
2323
},
2424
"suggest": {
2525
"inhere/simple-print-tool": "Very lightweight data printing tools",
2626
"inhere/php-validate": "Very lightweight data validate tool",
2727
"inhere/console": "a lightweight php console application library.",
28-
"slim/http": "Very lightweight PSR-7 implements http message component",
2928
"matthiasmullie/minify" : "compress css and js. if you want to compress assets."
3029
}
3130
}

docs/asset-manager.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
## AssetLoad
44

55
this is a asset load tool.
6-
class is at `inhere\library\asset\AssetLoad`
6+
class is at `Inhere\Library\asset\AssetLoad`
77

88
usage:
99

1010
```
1111
<?php
12-
use inhere\library\asset\AssetLoad;
12+
use Inhere\Library\asset\AssetLoad;
1313
1414
echo AssetLoad::css([
1515
'xx/ss.css',
@@ -29,7 +29,7 @@ echo AssetLoad::js([
2929
It can also compress asset:
3030

3131
```
32-
use inhere\library\asset\AssetLoad;
32+
use Inhere\Library\asset\AssetLoad;
3333
3434
$config = [
3535
'useFullUrl' => false,
@@ -63,7 +63,7 @@ $as1 = AssetLoad::js([
6363

6464
## AssetManager
6565

66-
class is at `inhere\library\asset\AssetManager`
66+
class is at `Inhere\Library\asset\AssetManager`
6767

6868
usage:
6969

@@ -96,12 +96,12 @@ echo $html;
9696

9797
## AssetPublisher
9898

99-
class is at `inhere\library\asset\AssetPublisher`
99+
class is at `Inhere\Library\asset\AssetPublisher`
100100

101101
usage:
102102

103103
```
104-
use inhere\library\asset\AssetPublisher;
104+
use Inhere\Library\asset\AssetPublisher;
105105
106106
$publisher = new AssetPublisher([
107107
'sourcePath' => '/var/www/project/vendor/bower',

libs/asset/AssetBag.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
* Time: 上午11:11
77
*/
88

9-
namespace inhere\libraryPlus\asset;
9+
namespace Inhere\LibraryPlus\Asset;
1010

11-
use inhere\library\StdObject;
11+
use Inhere\Library\StdObject;
1212

1313
/**
1414
* 命名资源 -- 保存了指定名称的一组资源 (reference Yii2 AssetBundle)
1515
*
1616
* AssetManager::loadAsset($name, $assets)
1717
*
1818
* Class AssetBag
19-
* @package inhere\library\asset
19+
* @package Inhere\Library\asset
2020
*/
2121
class AssetBag extends StdObject
2222
{

libs/asset/AssetHelper.php

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

9-
namespace inhere\libraryPlus\asset;
9+
namespace Inhere\LibraryPlus\Asset;
1010

1111
/**
1212
* Class AssetHelper
13-
* @package inhere\library\asset
13+
* @package Inhere\Library\asset
1414
*/
1515
class AssetHelper
1616
{

libs/asset/AssetLoad.php

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

9-
namespace inhere\libraryPlus\asset;
10-
11-
use inhere\exceptions\FileNotFoundException;
12-
use inhere\exceptions\FileSystemException;
13-
use inhere\exceptions\InvalidArgumentException;
14-
use inhere\exceptions\InvalidOptionException;
15-
use inhere\exceptions\NotFoundException;
16-
use inhere\library\files\Directory;
17-
use inhere\library\files\File;
18-
use inhere\library\helpers\ObjectHelper;
19-
use inhere\library\helpers\UrlHelper;
20-
use inhere\libraryPlus\html\Html;
21-
use inhere\library\StdObject;
9+
namespace Inhere\LibraryPlus\Asset;
10+
11+
use Inhere\Exceptions\FileNotFoundException;
12+
use Inhere\Exceptions\FileSystemException;
13+
use Inhere\Exceptions\InvalidArgumentException;
14+
use Inhere\Exceptions\InvalidOptionException;
15+
use Inhere\Exceptions\NotFoundException;
16+
use Inhere\Library\Files\Directory;
17+
use Inhere\Library\Files\File;
18+
use Inhere\Library\Helpers\UrlHelper;
19+
use Inhere\LibraryPlus\Html\Html;
20+
use Inhere\Library\StdObject;
2221
use MatthiasMullie\Minify;
2322

2423
/**
2524
* Class AssetLoad
26-
* @package inhere\library\asset
25+
* @package Inhere\Library\asset
2726
*
2827
* usage (in template file):
2928
*

libs/asset/AssetManager.php

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

9-
namespace inhere\libraryPlus\asset;
9+
namespace Inhere\LibraryPlus\Asset;
1010

11-
use inhere\exceptions\InvalidArgumentException;
12-
use inhere\library\helpers\UrlHelper;
13-
use inhere\library\StdObject;
14-
use inhere\libraryPlus\html\Html;
11+
use Inhere\Exceptions\InvalidArgumentException;
12+
use Inhere\Library\Helpers\UrlHelper;
13+
use Inhere\Library\StdObject;
14+
use Inhere\LibraryPlus\Html\Html;
1515

1616
/**
1717
* 前端资源加载管理
1818
* - 允许设定加载位置
1919
* - 自动注入到HTML中指定位置
2020
*
2121
* Class AssetManager
22-
* @package inhere\library\asset
22+
* @package Inhere\Library\asset
2323
*/
2424
class AssetManager extends StdObject
2525
{

libs/asset/AssetPublisher.php

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

9-
namespace inhere\libraryPlus\asset;
9+
namespace Inhere\LibraryPlus\Asset;
1010

11-
use inhere\exceptions\FileSystemException;
12-
use inhere\exceptions\InvalidArgumentException;
13-
use inhere\library\files\Directory;
14-
use inhere\library\files\File;
15-
use inhere\library\files\FileFinder;
16-
use inhere\library\helpers\ArrayHelper;
17-
use inhere\library\StdObject;
11+
use Inhere\Exceptions\FileSystemException;
12+
use Inhere\Exceptions\InvalidArgumentException;
13+
use Inhere\Library\Files\Directory;
14+
use Inhere\Library\Files\File;
15+
use Inhere\Library\Files\FileFinder;
16+
use Inhere\Library\Helpers\ArrayHelper;
17+
use Inhere\Library\StdObject;
1818

1919
/**
2020
* 资源发布 -- 将资源发布到可访问目录(e.g. from vendor to web dir)
2121
* Class AssetPublisher
22-
* @package inhere\library\asset
22+
* @package Inhere\Library\asset
2323
*/
2424
class AssetPublisher extends StdObject
2525
{

libs/auth/AccessChecker.php

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

9-
namespace inhere\libraryPlus\auth;
9+
namespace Inhere\LibraryPlus\Auth;
1010

1111
/**
1212
* Class AccessChecker
13-
* @package inhere\library\auth
13+
* @package Inhere\LibraryPlus\Auth
1414
*/
1515
class AccessChecker implements CheckAccessInterface
1616
{

libs/auth/CheckAccessInterface.php

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

9-
namespace inhere\libraryPlus\auth;
9+
namespace Inhere\LibraryPlus\Auth;
1010

1111
/**
1212
* Interface CheckAccessInterface
13-
* @package inhere\library\auth
13+
* @package Inhere\LibraryPlus\Auth
1414
*/
1515
interface CheckAccessInterface
1616
{

libs/auth/IdentityInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 下午4:29
77
*/
88

9-
namespace inhere\libraryPlus\auth;
9+
namespace Inhere\LibraryPlus\Auth;
1010

1111
/**
1212
* IdentityInterface is the interface that should be implemented by a class providing identity information.

0 commit comments

Comments
 (0)