Flarum\Api\Controller\DeleteLogoController::delete PHP Méthode

delete() protected méthode

protected delete ( Psr\Http\Message\ServerRequestInterface $request )
$request Psr\Http\Message\ServerRequestInterface
    protected function delete(ServerRequestInterface $request)
    {
        $this->assertAdmin($request->getAttribute('actor'));
        $path = $this->settings->get('logo_path');
        $this->settings->set('logo_path', null);
        $uploadDir = new Filesystem(new Local($this->app->publicPath() . '/assets'));
        if ($uploadDir->has($path)) {
            $uploadDir->delete($path);
        }
        return new EmptyResponse(204);
    }
DeleteLogoController