@@ -55,7 +55,7 @@ |
||
| 55 | 55 | // pretend I am doing a query |
| 56 | 56 | // $user = DB::findById($params['id']); |
| 57 | 57 | $user = (object) ['id' => 123, 'name' => 'Eugene', 'phone' => '111111']; |
| 58 | - return ok(['model' => $user]); |
|
| 58 | + return ok(['model' => $user]); |
|
| 59 | 59 | //return error('User not found!'); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -8,10 +8,10 @@ |
||
| 8 | 8 | use function einfach\operation\response\isValidResponse; |
| 9 | 9 | use const einfach\operation\response\RESPONSE_TYPE_ERROR; |
| 10 | 10 | use const einfach\operation\response\RESPONSE_TYPE_OK; |
| 11 | -use einfach\operation\step\Step; |
|
| 12 | -use einfach\operation\step\Failure; |
|
| 13 | 11 | use einfach\operation\step\AbstractStep; |
| 14 | 12 | use einfach\operation\step\Always; |
| 13 | +use einfach\operation\step\Failure; |
|
| 14 | +use einfach\operation\step\Step; |
|
| 15 | 15 | use einfach\operation\step\TryCatch; |
| 16 | 16 | use einfach\operation\step\Wrap; |
| 17 | 17 | |