2016-08-21 04:51:39 +05:30
|
|
|
<?php
|
|
|
|
namespace api\modules\authserver\exceptions;
|
|
|
|
|
2016-08-31 16:02:14 +05:30
|
|
|
use ReflectionClass;
|
2016-08-21 04:51:39 +05:30
|
|
|
use yii\web\HttpException;
|
|
|
|
|
|
|
|
class AuthserverException extends HttpException {
|
|
|
|
|
2016-08-31 16:02:14 +05:30
|
|
|
/**
|
2019-07-15 04:29:56 +05:30
|
|
|
* Reflection is faster, weird as it may seem:
|
2016-08-31 16:02:14 +05:30
|
|
|
* @url https://coderwall.com/p/cpxxxw/php-get-class-name-without-namespace#comment_19313
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getName() {
|
|
|
|
return (new ReflectionClass($this))->getShortName();
|
|
|
|
}
|
|
|
|
|
2016-08-21 04:51:39 +05:30
|
|
|
}
|