Skip to content

Commit

Permalink
merged error api #972
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Aug 31, 2016
1 parent d17614c commit 7f7b151
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion modules/errorapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ add the module to your application config:
'modules' => [
// ...
'errorapi' => [
'class' => 'errorapi\Module',
'class' => 'luya\luya\errorapi\Module',
'recipient' => ['[email protected]'],
'slackToken' => 'YOUR_SECRET_SLACK_TOKEN',
],
Expand Down
2 changes: 1 addition & 1 deletion modules/errorapi/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"autoload" : {
"psr-4" : {
"errorapi\\" : "src/"
"luya\\errorapi\\" : "src/"
}
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion modules/errorapi/src/Module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace errorapi;
namespace luya\errorapi;

use Yii;

Expand Down
4 changes: 2 additions & 2 deletions modules/errorapi/src/controllers/DefaultController.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace errorapi\controllers;
namespace luya\errorapi\controllers;

use Yii;
use errorapi\models\Data;
use luya\errorapi\models\Data;

/**
*
Expand Down
4 changes: 2 additions & 2 deletions modules/errorapi/src/models/Data.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace errorapi\models;
namespace luya\errorapi\models;

use errorapi\Module;
use luya\errorapi\Module;

class Data extends \yii\db\ActiveRecord
{
Expand Down
2 changes: 1 addition & 1 deletion modules/errorapi/src/views/default/_mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
?>
<h1 style="color: #f00;"><?php echo $model->message; ?></h1>
<p style="color: #800000;">from <strong><?php echo $model->serverName; ?></strong></p>
<a href="https://github.com/luyadev/luya/issues/new?title=<?php echo urlencode('#'. $model->identifier . ' ' . $model->message);?>"><?php echo errorapi\Module::t('mail_create_issue') ?></a>
<a href="https://github.com/luyadev/luya/issues/new?title=<?php echo urlencode('#'. $model->identifier . ' ' . $model->message);?>"><?php echo luya\errorapi\Module::t('mail_create_issue') ?></a>
<table cellspacing="2" cellpadding="6" border="0" width="1200">
<?php foreach ($model->errorArray as $key => $value): ?>
<tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace tests\web\errorapi\controllers;
namespace tests\web\luya\errorapi\controllers;

use Yii;

Expand Down

0 comments on commit 7f7b151

Please sign in to comment.