Перенесена логика join операции для современных серверов.

Нужно признать, что перенесена она так себе, но в будущем я обязательно это перепишу.
This commit is contained in:
ErickSkrauch
2016-09-03 01:54:22 +03:00
parent 762fab447b
commit 34d725abe2
19 changed files with 543 additions and 6 deletions

View File

@@ -2,11 +2,12 @@
namespace api\components;
use api\modules\authserver\exceptions\AuthserverException;
use api\modules\session\exceptions\SessionServerException;
class ErrorHandler extends \yii\web\ErrorHandler {
public function convertExceptionToArray($exception) {
if ($exception instanceof AuthserverException) {
if ($exception instanceof AuthserverException || $exception instanceof SessionServerException) {
return [
'error' => $exception->getName(),
'errorMessage' => $exception->getMessage(),