1
0
mirror of https://github.com/flarum/core.git synced 2025-10-17 09:46:14 +02:00

Upgrade Zend Diactoros to 1.1

This gives us a bunch of handy helper classes for empty responses,
redirects, HTML and JSON content types.

Closes flarum/core#153
This commit is contained in:
Franz Liedke
2015-06-26 22:34:34 +02:00
parent e18d8b35e5
commit 391c510f90
10 changed files with 92 additions and 53 deletions

View File

@@ -1,10 +1,10 @@
<?php namespace Flarum\Api\Actions;
use Flarum\Api\Request;
use Flarum\Api\Actions\JsonApiAction;
use Flarum\Core\Repositories\UserRepositoryInterface;
use Flarum\Core\Commands\RequestPasswordResetCommand;
use Illuminate\Contracts\Bus\Dispatcher;
use Zend\Diactoros\Response\EmptyResponse;
class ForgotAction extends JsonApiAction
{
@@ -32,6 +32,6 @@ class ForgotAction extends JsonApiAction
new RequestPasswordResetCommand($email)
);
return $this->json();
return new EmptyResponse();
}
}