Return empty response

Without this, the new version of Stratigility complained about no
response being returned. Old versions were more graceful here, but
this is certainly more correct.
This commit is contained in:
Franz Liedke 2018-03-19 23:06:22 +01:00
parent 92cb3b9166
commit c3f115387e

View File

@ -15,6 +15,7 @@ use Flarum\Extension\ExtensionManager;
use Flarum\Http\Controller\ControllerInterface;
use Flarum\User\AssertPermissionTrait;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response\EmptyResponse;
class UpdateExtensionController implements ControllerInterface
{
@ -48,5 +49,7 @@ class UpdateExtensionController implements ControllerInterface
} elseif ($enabled === false) {
$this->extensions->disable($name);
}
return new EmptyResponse;
}
}