1 | <?php |
||
32 | class CurrentThemeController extends Controller |
||
|
|||
33 | { |
||
34 | /** |
||
35 | * Uploads current theme logo. |
||
36 | * |
||
37 | * @Operation( |
||
38 | * tags={"theme"}, |
||
39 | * summary="Uploads current theme logo", |
||
40 | * @SWG\Parameter( |
||
41 | * name="logo", |
||
42 | * in="formData", |
||
43 | * description="Logo file", |
||
44 | * required=false, |
||
45 | * type="file" |
||
46 | * ), |
||
47 | * @SWG\Response( |
||
48 | * response="201", |
||
49 | * description="Returned on success.", |
||
50 | * @Model(type=\SWP\Bundle\CoreBundle\Model\Settings::class, groups={"api"}) |
||
51 | * ) |
||
52 | * ) |
||
53 | * |
||
54 | * @Route("/api/{version}/theme/logo_upload/", options={"expose"=true}, defaults={"version"="v2"}, methods={"POST"}, name="swp_api_upload_theme_logo_2") |
||
55 | * @Route("/api/{version}/theme/logo_upload/{type}", options={"expose"=true}, defaults={"version"="v2"}, methods={"POST"}, name="swp_api_upload_theme_logo") |
||
56 | */ |
||
57 | public function uploadThemeLogoAction(Request $request, string $type = ThemeLogoProviderInterface::SETTING_NAME_DEFAULT): SingleResourceResponseInterface |
||
90 | |||
91 | /** |
||
92 | * Lists current theme settings. |
||
93 | * |
||
94 | * @Operation( |
||
95 | * tags={"theme"}, |
||
96 | * summary="Lists current theme settings", |
||
97 | * @SWG\Response( |
||
98 | * response="200", |
||
99 | * description="Returned on success.", |
||
100 | * @Model(type=\SWP\Bundle\CoreBundle\Model\Settings::class, groups={"api"}) |
||
101 | * ) |
||
102 | * ) |
||
103 | * |
||
104 | * @Route("/api/{version}/theme/settings/", options={"expose"=true}, defaults={"version"="v2"}, methods={"GET"}, name="swp_api_theme_settings_list") |
||
105 | */ |
||
106 | public function listSettingsAction(): SingleResourceResponseInterface |
||
120 | } |
||
121 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.