getAttribute('name'); $group = $request->getAttribute('group'); if (!$name) { $name = 'index'; } if ($group) { $name = $group . '/' . $name; } $data = []; $data['currencies'] = Currencies::getNames(); $data['payment_gateways'] = $this->factory; $data['cdn_adapters'] = $this->cdnAdapters; $data['rate_providers'] = $this->rateProviders; $path = $this->webroot . '/app.webmanifest'; $data['pwa'] = json_decode( file_exists($path) ? file_get_contents($path) : '{}' ); return new ViewResponse( '/templates/admin/settings/' . $name . '.twig', $data ); } }