mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 01:25:00 +00:00
Run symfonysetlist up to symfony_70
This commit is contained in:
@@ -58,7 +58,7 @@ class AdminDocGeneratorTemplateController extends CRUDController
|
||||
return parent::new($request);
|
||||
}
|
||||
|
||||
#[Route(path: '{_locale}/admin/docgen/template/pick-context', name: 'chill_docgen_admin_template_pick-context')]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '{_locale}/admin/docgen/template/pick-context', name: 'chill_docgen_admin_template_pick-context')]
|
||||
public function pickContext(Request $request): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted('ROLE_ADMIN');
|
||||
|
@@ -51,7 +51,7 @@ final class DocGeneratorTemplateController extends AbstractController
|
||||
private readonly ChillSecurity $security,
|
||||
) {}
|
||||
|
||||
#[Route(path: '{_locale}/admin/doc/gen/generate/test/from/{template}/for/{entityClassName}/{entityId}', name: 'chill_docgenerator_test_generate_from_template')]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '{_locale}/admin/doc/gen/generate/test/from/{template}/for/{entityClassName}/{entityId}', name: 'chill_docgenerator_test_generate_from_template')]
|
||||
public function adminTestGenerateDocFromTemplateAction(
|
||||
DocGeneratorTemplate $template,
|
||||
string $entityClassName,
|
||||
@@ -66,7 +66,7 @@ final class DocGeneratorTemplateController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
#[Route(path: '{_locale}/doc/gen/generate/from/{template}/for/{entityClassName}/{entityId}', name: 'chill_docgenerator_generate_from_template')]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '{_locale}/doc/gen/generate/from/{template}/for/{entityClassName}/{entityId}', name: 'chill_docgenerator_generate_from_template')]
|
||||
public function generateDocFromTemplateAction(
|
||||
DocGeneratorTemplate $template,
|
||||
string $entityClassName,
|
||||
@@ -81,7 +81,7 @@ final class DocGeneratorTemplateController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
#[Route(path: '/api/1.0/docgen/templates/by-entity/{entityClassName}', name: 'chill_docgenerator_templates_for_entity_api')]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '/api/1.0/docgen/templates/by-entity/{entityClassName}', name: 'chill_docgenerator_templates_for_entity_api')]
|
||||
public function listTemplateApiAction(string $entityClassName): Response
|
||||
{
|
||||
$nb = $this->docGeneratorTemplateRepository->countByEntity($entityClassName);
|
||||
@@ -103,7 +103,7 @@ final class DocGeneratorTemplateController extends AbstractController
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
#[Route(path: '{_locale}/admin/doc/gen/generate/test/redirect', name: 'chill_docgenerator_test_generate_redirect')]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '{_locale}/admin/doc/gen/generate/test/redirect', name: 'chill_docgenerator_test_generate_redirect')]
|
||||
public function redirectToTestGenerate(Request $request): RedirectResponse
|
||||
{
|
||||
$template = $request->query->getInt('template');
|
||||
|
Reference in New Issue
Block a user