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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user