settings = $settings; $this->app = $app; } /** * {@inheritdoc} */ 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); } }