/** @var CurrencyEntity $defaultCurrency */
$defaultCurrency =
$this->currencyRepository->
search(new Criteria([Defaults::CURRENCY
]),
$context)->
first();
return $this->
render($template,
[ 'features' => Feature::
getAll(),
'systemLanguageId' => Defaults::LANGUAGE_SYSTEM,
'defaultLanguageIds' =>
[Defaults::LANGUAGE_SYSTEM
],
'systemCurrencyId' => Defaults::CURRENCY,
'disableExtensions' => EnvironmentHelper::
getVariable('DISABLE_EXTENSIONS', false
),
'systemCurrencyISOCode' =>
$defaultCurrency->
getIsoCode(),
'liveVersionId' => Defaults::LIVE_VERSION,
'firstRunWizard' =>
$this->firstRunWizardService->
frwShouldRun(),
'apiVersion' =>
$this->
getLatestApiVersion(),
'cspNonce' =>
$request->attributes->
get(PlatformRequest::ATTRIBUTE_CSP_NONCE
),
'adminEsEnable' =>
$this->esAdministrationEnabled,
'storefrontEsEnable' =>
$this->esStorefrontEnabled,
]);
} #[Route(path: '/api/_admin/snippets', name: 'api.admin.snippets', methods: ['GET'])]
public function snippets(Request
$request): Response
{ $snippets =
[];