Skip to content

Commit f45ce31

Browse files
committed
feat: change namespace
1 parent e28caf5 commit f45ce31

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace kriss\modules\logReader;
3+
namespace kriss\logReader;
44

55
use Yii;
66
use yii\base\Object;

Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace kriss\modules\logReader;
3+
namespace kriss\logReader;
44

55
use yii\base\BootstrapInterface;
66
use yii\base\InvalidConfigException;

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ return [
3838
'bootstrap' => ['log-reader'],
3939
'modules' => [
4040
'log-reader' => [
41-
'class' => 'zhuravljov\yii\logreader\Module',
41+
'class' => 'kriss\logreader\Module',
4242
'aliases' => [
4343
'Frontend Errors' => '@frontend/runtime/logs/app.log',
4444
'Backend Errors' => '@backend/runtime/logs/app.log',
@@ -52,11 +52,11 @@ return [
5252
You can then access Log Reader using the following URL:
5353

5454
```php
55-
http://localhost/path/to/index.php?r=logreader
55+
http://localhost/path/to/index.php?r=log-reader
5656
```
5757

5858
or if you have enabled pretty URLs, you may use the following URL:
5959

6060
```php
61-
http://localhost/path/to/logreader
61+
http://localhost/path/to/log-reader
6262
```

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"autoload": {
1717
"psr-4": {
18-
"kriss\\module\\logReader\\": ""
18+
"kriss\\logReader\\": ""
1919
}
2020
}
2121
}

controllers/DefaultController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace kriss\modules\logReader\controllers;
3+
namespace kriss\logReader\controllers;
44

5-
use kriss\modules\logReader\Module;
6-
use kriss\modules\logReader\Log;
5+
use kriss\logReader\Module;
6+
use kriss\logReader\Log;
77
use Yii;
88
use yii\data\ArrayDataProvider;
99
use yii\helpers\Url;

views/default/_counts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
/**
33
* @var \yii\web\View $this
4-
* @var \kriss\modules\logReader\Log $log
4+
* @var \kriss\logReader\Log $log
55
*/
66

77
use yii\helpers\Html;
88

9-
/** @var \kriss\modules\logReader\Module $module */
9+
/** @var \kriss\logReader\Module $module */
1010
$module = $this->context->module;
1111

1212
foreach ($log->getCounts() as $level => $count) {

views/default/history.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
use yii\grid\GridView;
99
use yii\helpers\Html;
10-
use kriss\modules\logReader\Log;
10+
use kriss\logReader\Log;
1111

1212
$this->title = $name;
1313
$this->params['breadcrumbs'][] = ['label' => 'Logs', 'url' => ['index']];

views/default/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use yii\grid\GridView;
88
use yii\helpers\Html;
9-
use kriss\modules\logReader\Log;
9+
use kriss\logReader\Log;
1010

1111
$this->title = 'Logs';
1212
$this->params['breadcrumbs'][] = 'Logs';

0 commit comments

Comments
 (0)