#[Route(path: '/api/_action/extension/activate/{type}/{technicalName}', name: 'api.extension.activate', methods: ['PUT'])]
public function activateExtension(string
$type, string
$technicalName, Context
$context): Response
{ $this->extensionLifecycleService->
activate($type,
$technicalName,
$context);
return new Response('', Response::HTTP_NO_CONTENT
);
} #[Route(path: '/api/_action/extension/deactivate/{type}/{technicalName}', name: 'api.extension.deactivate', methods: ['PUT'])]
public function deactivateExtension(string
$type, string
$technicalName, Context
$context): Response
{ $this->extensionLifecycleService->
deactivate($type,
$technicalName,
$context);
return new Response('', Response::HTTP_NO_CONTENT
);
} #[Route(path: '/api/_action/extension/update/{type}/{technicalName}', name: 'api.extension.update', methods: ['POST'])]
public function updateExtension(Request
$request, string
$type, string
$technicalName, Context
$context): Response
{ $allowNewPermissions =
$request->request->
getBoolean('allowNewPermissions'
);
$this->extensionLifecycleService->
update($type,
$technicalName,
$allowNewPermissions,
$context);