/**
* @internal
*/
public function __construct(private readonly ThemeService
$themeService) { } #[Route(path: '/api/_action/theme/{themeId}/configuration', name: 'api.action.theme.configuration', methods: ['GET'])]
public function configuration(string
$themeId, Context
$context): JsonResponse
{ $themeConfiguration =
$this->themeService->
getThemeConfiguration($themeId, true,
$context);
return new JsonResponse($themeConfiguration);
} #[Route(path: '/api/_action/theme/{themeId}', name: 'api.action.theme.update', methods: ['PATCH'])]
public function updateTheme(string
$themeId, Request
$request, Context
$context): JsonResponse
{ $config =
$request->request->
all('config'
);
$this->themeService->
updateTheme( $themeId,