@@ -2,17 +2,14 @@ |
||
| 2 | 2 | use Illuminate\Database\Capsule\Manager as Capsule; |
| 3 | 3 | use Illuminate\Events\Dispatcher; |
| 4 | 4 | use Illuminate\Container\Container; |
| 5 | - |
|
| 6 | 5 | use Monolog\Logger; |
| 7 | 6 | use Monolog\Processor\UidProcessor; |
| 8 | 7 | use Monolog\Handler\StreamHandler; |
| 9 | - |
|
| 10 | 8 | use Illuminate\Translation\FileLoader; |
| 11 | 9 | use Illuminate\Filesystem\Filesystem; |
| 12 | 10 | use Illuminate\Translation\Translator; |
| 13 | 11 | use Illuminate\Validation\DatabasePresenceVerifier; |
| 14 | 12 | use Illuminate\Validation\Factory; |
| 15 | - |
|
| 16 | 13 | use App\Common\Acl; |
| 17 | 14 | use App\Common\Renderer; |
| 18 | 15 | use App\Common\MailRenderer; |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use App\Common\Helper; |
| 5 | 5 | use App\Common\JsonException; |
| 6 | 6 | use App\Scopes\MaxPerPageScope; |
| 7 | - |
|
| 8 | 7 | use Slim\Http\Request; |
| 9 | 8 | use Slim\Http\Response; |
| 10 | 9 | |
@@ -3,12 +3,10 @@ |
||
| 3 | 3 | |
| 4 | 4 | use App\Model\User; |
| 5 | 5 | use App\Common\JsonException; |
| 6 | - |
|
| 7 | 6 | use App\Requests\RequestResetPasswordRequest; |
| 8 | 7 | use App\Requests\ResetPasswordRequest; |
| 9 | 8 | use App\Requests\UserCreateRequest; |
| 10 | 9 | use App\Requests\UserUpdateRequest; |
| 11 | - |
|
| 12 | 10 | use Slim\Http\Request; |
| 13 | 11 | use Slim\Http\Response; |
| 14 | 12 | |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | class CreateRolesToRightTable{ |
| 5 | 5 | /** |
| 6 | - * Do the migration |
|
| 7 | - */ |
|
| 6 | + * Do the migration |
|
| 7 | + */ |
|
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | 10 | Capsule::schema()->create('roles_to_rights', function($table) |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Undo the migration |
|
| 21 | - */ |
|
| 20 | + * Undo the migration |
|
| 21 | + */ |
|
| 22 | 22 | public function down() |
| 23 | 23 | { |
| 24 | 24 | Capsule::schema()->drop('roles_to_rights'); |
@@ -196,25 +196,25 @@ |
||
| 196 | 196 | */ |
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | - * @api {delete} /role/:id Удаление роли |
|
| 200 | - * @apiName DeleteRole |
|
| 201 | - * @apiGroup Role |
|
| 202 | - * |
|
| 203 | - * @apiDescription Метод для удаления роли. |
|
| 204 | - * |
|
| 205 | - * @apiPermission admin |
|
| 206 | - * |
|
| 207 | - * @apiParam {Number} id Id роли |
|
| 208 | - * |
|
| 209 | - * @apiHeader {String} Authorization Токен. |
|
| 210 | - * |
|
| 211 | - * @apiSuccessExample {json} Успешно (204) |
|
| 212 | - * HTTP/1.1 204 OK |
|
| 213 | - * |
|
| 214 | - * @apiUse UnauthorizedError |
|
| 215 | - * @apiUse StandardErrors |
|
| 216 | - * @apiUse NotFoundError |
|
| 217 | - */ |
|
| 199 | + * @api {delete} /role/:id Удаление роли |
|
| 200 | + * @apiName DeleteRole |
|
| 201 | + * @apiGroup Role |
|
| 202 | + * |
|
| 203 | + * @apiDescription Метод для удаления роли. |
|
| 204 | + * |
|
| 205 | + * @apiPermission admin |
|
| 206 | + * |
|
| 207 | + * @apiParam {Number} id Id роли |
|
| 208 | + * |
|
| 209 | + * @apiHeader {String} Authorization Токен. |
|
| 210 | + * |
|
| 211 | + * @apiSuccessExample {json} Успешно (204) |
|
| 212 | + * HTTP/1.1 204 OK |
|
| 213 | + * |
|
| 214 | + * @apiUse UnauthorizedError |
|
| 215 | + * @apiUse StandardErrors |
|
| 216 | + * @apiUse NotFoundError |
|
| 217 | + */ |
|
| 218 | 218 | final class RoleSchema extends BaseSchema |
| 219 | 219 | { |
| 220 | 220 | protected $resourceType = 'role'; |
@@ -3,12 +3,10 @@ |
||
| 3 | 3 | |
| 4 | 4 | use App\Model\User; |
| 5 | 5 | use App\Common\JsonException; |
| 6 | - |
|
| 7 | 6 | use App\Requests\RequestResetPasswordRequest; |
| 8 | 7 | use App\Requests\ResetPasswordRequest; |
| 9 | 8 | use App\Requests\UserCreateRequest; |
| 10 | 9 | use App\Requests\UserUpdateRequest; |
| 11 | - |
|
| 12 | 10 | use Slim\Http\Request; |
| 13 | 11 | use Slim\Http\Response; |
| 14 | 12 | |
@@ -3,12 +3,10 @@ |
||
| 3 | 3 | |
| 4 | 4 | use App\Model\User; |
| 5 | 5 | use App\Common\JsonException; |
| 6 | - |
|
| 7 | 6 | use App\Requests\RequestResetPasswordRequest; |
| 8 | 7 | use App\Requests\ResetPasswordRequest; |
| 9 | 8 | use App\Requests\UserCreateRequest; |
| 10 | 9 | use App\Requests\UserUpdateRequest; |
| 11 | - |
|
| 12 | 10 | use Slim\Http\Request; |
| 13 | 11 | use Slim\Http\Response; |
| 14 | 12 | |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | class CreateRolesToRightTable{ |
| 5 | 5 | /** |
| 6 | - * Do the migration |
|
| 7 | - */ |
|
| 6 | + * Do the migration |
|
| 7 | + */ |
|
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | 10 | Capsule::schema()->create('roles_to_rights', function($table) |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Undo the migration |
|
| 21 | - */ |
|
| 20 | + * Undo the migration |
|
| 21 | + */ |
|
| 22 | 22 | public function down() |
| 23 | 23 | { |
| 24 | 24 | Capsule::schema()->drop('roles_to_rights'); |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | class CreateRolesToRightTable{ |
| 5 | 5 | /** |
| 6 | - * Do the migration |
|
| 7 | - */ |
|
| 6 | + * Do the migration |
|
| 7 | + */ |
|
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | 10 | Capsule::schema()->create('roles_to_rights', function($table) |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Undo the migration |
|
| 21 | - */ |
|
| 20 | + * Undo the migration |
|
| 21 | + */ |
|
| 22 | 22 | public function down() |
| 23 | 23 | { |
| 24 | 24 | Capsule::schema()->drop('roles_to_rights'); |